Commit Graph
41 Commits
Author SHA1 Message Date
Jacques Le Roux d34b256f41 While working at layering lookups I found that some of them are inappropriately named lookups and are actually lists (at least for now, locales, timezones and themes)
In this commit I rename them List (instead of Lookup) to avoid future confusion. If this has too much impact we may revert it of course...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907310 13f79535-47bb-0310-9956-ffa450edef68
2010-02-06 21:33:01 +00:00
Hans Bakker afbdeab656 moved the helpscreens into the framework: a first step. core parts of the content manager to follow. Removed the references to the help screens in confluence
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903589 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 10:09:49 +00:00
Scott Gray 3f33a1fab7 Deprecated the various json event handlers and commented out references to them from the controllers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892685 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:01:20 +00:00
Scott Gray 4d2a839b1d Added a common resquest mapping for sending json responses based on the request attributes, requests requiring json responses should chain the request. Removes the need for a json event wrapper for every type of event. Based on idea put forward by Bob Morley OFBIZ-2778
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892218 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 10:54:20 +00:00
Hans Bakker a2982cef6d Although we do not experience compile problems here, there were some problems as reported https://issues.apache.org/jira/browse/OFBIZ-3353. which should be fixed now, contribution by chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891180 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 10:44:27 +00:00
Bruno Busco d0d9384a6e Added a new feature that allows to save the screenlet collapsed/expanded status as a userPreference. (OFBIZ-3271)
By default screenlets status are saved. A new "save-collapsed" screenlet attribute (default=true) can be used to disable this feature for selected screenlets.
An userPreference with key = screenlet.id+"_collapsed" is used to save the status.
Screenlets that share the same ID, share the same saved status also (i.e. all searchOptions screenlets used in the FindScreenDecorator use the same status). In order to have them separated a different ID should be specified.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-07 17:24:21 +00:00
Jacopo Cappellato 16a1a6e98a Implemented CSV screen macro renderer; cleaned up existing csv widget forms that are now much more clean.
This is a good example of the great flexibility of widgets and the new macro renderer (no code was needed to implement the CSV renderer).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802400 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 15:49:04 +00:00
Anil Patel a29ff05ca5 Adding Json event handler for multi service. Patch from OFBIZ-2762. Thanks Rishi and Chirag for implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798114 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 12:22:21 +00:00
Adrian Crum 5fe277e26d Added a lookup screen for time duration. Added an example to the Edit Work Effort screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783550 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 22:13:07 +00:00
Jacques Le Roux 058d6aed57 A patch from Ashish Vijaywargiya "Change Copyright Year" (https://issues.apache.org/jira/browse/OFBIZ-2346) - OFBIZ-2346
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772936 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 10:56:14 +00:00
Hans Bakker 04a2002fff disabled new screen renders by accident....enabled them again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768691 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 09:17:56 +00:00
Hans Bakker 00a5b35040 put back requests backHome and backLast, now with security
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768690 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 09:05:07 +00:00
Hans Bakker a1bdfbb817 remove unused requests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768643 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 04:58:50 +00:00
Jacopo Cappellato a96a27bbeb Enabled by default the new screen/form renderers (for html, xml, txt) based on Freemarker macros. This should speed up the testing phase; we should not commit this change to the release branch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767101 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 10:07:52 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Jacques Le Roux a5042291f7 1st part of an effort to remove trailing spaces
" +/> => "/>
Should be easier when dealing with Eclipse S/R regexp

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762648 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 08:27:15 +00:00
Bilgin Ismet Ibryam 7e7c1f375a Added an optional "name" attribute to event element in controller.xml This attribute is used only (also required) in events inside
firstvisit, after-login, before-logout, preprocessor and postprocessor elements. Events with same name will be overridden and only the last one will be executed. Overriding works also in cases when a controller.xml includes other controller files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@761220 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 09:47:48 +00:00
Hans Bakker 6504c3723a some more security and go back updates
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759070 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 09:28:02 +00:00
Hans Bakker 1e1ed8fba9 move all examples from the common to the example component, edit parameters of portlet in the general managePortalPage screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@752401 13f79535-47bb-0310-9956-ffa450edef68
2009-03-11 08:05:34 +00:00
David E. Jones 3659c81be2 Changed the timezones stuff to work like the new locale stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749978 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 12:26:05 +00:00
David E. Jones f876f9a0c1 Simple implementation of feature discussed on the mailing list to facilitate getting back to a view after some generic action, like schanging the locale which this commit has use the new feature as a test case; I'm not sure I like this approach, will send message to dev list about it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749959 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 10:27:52 +00:00
David E. Jones afe3dc9c81 A few related changes:
Big refactor of ControlServlet, RequestManager, RequestHandler, and ConfigXMLReader so that simple objects are used instead of Maps within Maps within Maps for the data from the controller.xml file, which results in eliminating hundreds of lines of code including the entire RequestHandler class. I have tested this a lot with different apps that use the ControlServlet differently, but this is a very big change so there could still be issues. Based on this cleanup future issues and new features should be easier and less error prone, and that is why doing it now in order to help with a number of other improvements and bug fixes that are part of this commit.

Also added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues wd in and also going to the same page after login from auth=true or from clicking on the login link.

Related to cleaning up login URLs also changed how the request and parameters passed to a request before a login are saved and used after a login is successful so that it URL parameters go on the URL in a redirect to the original request to make it more transparent, and non-URL parameters just stay in the session and are used when the original request is run again to avoid putting sensitive information like passwords and big information like textarea data in the URL, which has been a problem before.

To see what some of these things combined can do try going to the example app, login, click on the New Example link, then logout in another tab or window, then go back to the New Example page and enter a name and a whole bunch of text in the long description then click Create, the system will show you the login page so enter username/password, and then after login you'll see a nice URL to EditExample with the correct exampleId parameter and all of the data entered before login successfully saved and never appearing in a URL.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741374 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 02:14:19 +00:00
Jacques Le Roux 90264b4180 Add popup address Geolocation in party profile
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737369 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 14:48:25 +00:00
Jacques Le Roux 40f1371b56 A patch from Guy Gershoni "Allow use of HttpServletRequest.getRemoteUser() for 3rd party authentication" '(https://issues.apache.org/jira/browse/OFBIZ-1906) - OFBIZ-1906
I did not test the CAS case, but reviewed the code and tested in std mode (not using CAS) and it's OK

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@736660 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 14:52:24 +00:00
Jacques Le Roux f36843386d Close "Grey list feature for confidential data access" (https://issues.apache.org/jira/browse/OFBIZ-2074) - OFBIZ-2074
I put an explanation in http://docs.ofbiz.org/display/OFBTECH/OFBiz+security

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@727508 13f79535-47bb-0310-9956-ffa450edef68
2008-12-17 20:50:11 +00:00
David E. Jones e7f1dde5f5 Commit reworked initial patch from Bruno Busco in Jira #1999; this follows Brunos work but adds the PortalPageColumn entity to configure columns, just optional pixel width for now, and also cleaned up entities and added foreign keys; rewrote a few things in screen actions and simple methods and removed a bunch of unused stuff that was commented out, so hopefully there isnt any more stray code in here; moved various things to files that were less generic, ie that mention portal specifically instead of just common or something; changed controller and menu setup so that this isn't in all apps by default, in fact just the example webapp for now with the include of portal-controller.xml and adding a dashboard menu item; note that this does not include the few changes in the specialpurpose directory, just the framework stuff for now; also moved data from seed to demo as it really isn't seed data in common and example
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718185 13f79535-47bb-0310-9956-ffa450edef68
2008-11-17 07:56:27 +00:00
Jacques Le Roux a0df0284f4 A patch from Marco Risaliti "Artifact info logs cleanup" (https://issues.apache.org/jira/browse/OFBIZ-1982) OFBIZ-1982
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@704697 13f79535-47bb-0310-9956-ffa450edef68
2008-10-14 21:38:28 +00:00
Jacques Le Roux 7818a0afe2 A patch from Bruno Busco "Adding forgot password feature in framework" (https://issues.apache.org/jira/browse/OFBIZ-1984) - OFBIZ-1984
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703647 13f79535-47bb-0310-9956-ffa450edef68
2008-10-11 11:01:01 +00:00
Adrian Crum 32682b431a Visual Themes framework - for more information see https://issues.apache.org/jira/browse/OFBIZ-1885.
This commit provides a means to swap out the current UI theme for another one. Alternate style sheets, templates, JavScript files, etc can be used to give OFBiz a completely different look.

Right now the plan is to have "theme libraries" that can be dropped in the hot-deploy folder. Work still needs to be done to connect web stores and product catalogs to the visual theme framework.

Users can select their preferred theme in the back-office applications.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@698346 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23 20:58:23 +00:00
Adrian Crum 44ecc8b364 Fixed the setUserPreference request in common-controller.xml. Reported by Bruno Busco on dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681501 13f79535-47bb-0310-9956-ffa450edef68
2008-07-31 21:19:35 +00:00
David E. Jones 0065182657 A few more view and request/event handlers, though not terribly common
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681254 13f79535-47bb-0310-9956-ffa450edef68
2008-07-31 02:05:42 +00:00
David E. Jones 8f2b25c96d A few enhancements to the common controller, we might as well have a bunch of request and view handlers there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677644 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 17:36:55 +00:00
Adrian Crum 1f1f2552c1 A basic implementation of a help system, based on work contributed by Bruno Busco - https://issues.apache.org/jira/browse/OFBIZ-1750.
There is an example of how it is used in the EditExample screen of the Example component.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@663378 13f79535-47bb-0310-9956-ffa450edef68
2008-06-04 21:49:38 +00:00
Jacopo Cappellato 27bdcf64db Continued work done by Anil Patel about implementation of Ajax.Autocompleter enhancement for form widget text box.
There is now a generic screen (and controller entries) that can be used by Ajax autocompleter fields.
See the example in the example component.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659488 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 10:10:48 +00:00
Andrew Zeneski 5095e4e09f added support for third party policy servicers; setting the userLoginId in a request header, ofbiz will assume the user has already been authenticated and log the user in.
This is DISABLED by default (see security.properties) be sure your policy server is running in front of ofbiz to avoid security issues (spoofing).

Jira: OFBIZ-1781


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@656008 13f79535-47bb-0310-9956-ffa450edef68
2008-05-13 20:59:03 +00:00
Jacopo Cappellato 9661346678 Fixed bug that was causing the "main" screens to be visible w/o authentication
Thanks to Bilgim Ibryam for the patch OFBIZ-1717.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@640309 13f79535-47bb-0310-9956-ffa450edef68
2008-03-24 04:09:34 +00:00
Adrian Crum 65d64af698 User preferences feature - https://issues.apache.org/jira/browse/OFBIZ-495. This is the Java version - I'll commit the simple method version as soon as one is available.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@606269 13f79535-47bb-0310-9956-ffa450edef68
2007-12-21 19:02:28 +00:00
Anil Patel cf5eef5c10 moved screenxml and screentext handlers from facility controller to common-controller so that they are available in wider scoop.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600251 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 06:00:51 +00:00
Anil Patel e0cd2e1738 Providing EventMessages as a screen by itself. Added it to view in controller so it can be used in response to error condition in request process.
It will come handy when partial screen is updated in response to Ajax request.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@595883 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 00:27:12 +00:00
Jacopo Cappellato 89f3fd0098 Applied patch from Adrian Crum as a first pass to share the same common login screens in all the applications.
OFBIZ-1320


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585393 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 06:24:17 +00:00
Jacques Le Roux b5a7d153c6 Changed name as suggested by Adrian and David in OFBIZ-1230
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582717 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 06:25:12 +00:00