Commit Graph
56 Commits
Author SHA1 Message Date
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
Bruno Busco c4d9922812 Removed Login and Logout menu item from FTL based app-navigation menus. (Moved now to the header).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739724 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 09:58:36 +00:00
Jacques Le Roux b00283d857 A patch from Bruno Busco "Drop-down Applications Bar" '(https://issues.apache.org/jira/browse/OFBIZ-2118) - OFBIZ-2118
Fix an issue in Example component



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737505 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 11:44:46 +00:00
Jacques Le Roux 572b7683e0 All tabs to 4 spaces in *.groovy, *.java, *.xml : less problems in future with that aspect...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737003 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:08:47 +00:00
David E. Jones 806eb98c1b Applied patches from Bruno Busco in Jira #OFBIZ-2118 to add flexibility to menus and themes for more dramatic changes in themes, includes patches AppMenuDropDown.patch and VisualThemeMessage.patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@736887 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 01:50:28 +00:00
Hans Bakker 299572ab6a updates according the comments from bruno
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731508 13f79535-47bb-0310-9956-ffa450edef68
2009-01-05 09:48:15 +00:00
Hans Bakker ab68f24611 some small corrections in myportal framework and the first batch of updates for myportal
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730947 13f79535-47bb-0310-9956-ffa450edef68
2009-01-03 09:48:18 +00:00
Jacques Le Roux 1e9dabed6a A patch from Erwan de FERRIERES "Button to print a preview of fonts in OFBiz" (https://issues.apache.org/jira/browse/OFBIZ-2094) - OFBIZ-2094
+ some i18n and French translation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@728073 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 17:23:19 +00:00
Hans Bakker 54a5a1094a update of portal pages with including column support and now using the 'normal' ofbiz interface
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724618 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 06:17:35 +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
David E. Jones 29ee827480 Based on expanded common controller removed a few things here
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677646 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 17:37:23 +00:00
Anil Patel 6a74345536 JSON handler for simple method events.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671706 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 01:50:39 +00:00
Anil Patel 17d9d62174 Initial version of code to show error messages when form is posted in background.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671424 13f79535-47bb-0310-9956-ffa450edef68
2008-06-25 04:47:10 +00:00
Scott Gray ea942ee8cb Fix after groovy migration
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670298 13f79535-47bb-0310-9956-ffa450edef68
2008-06-22 02:10:26 +00:00
Jacques Le Roux 38994c4052 Better bsh-groovy migration, thanks to Scott and Ashish for review
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667508 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 12:42:32 +00:00
Jacques Le Roux 476c1e4e90 I forgot to update the file name after my remote uppercase change (Windows side effect)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667488 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 11:53:40 +00:00
Jacques Le Roux 9ff785c6d1 Renamed remotely
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667450 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 10:00:16 +00:00
Jacques Le Roux 55123e289a My 1st bsh->groovy migration, please check. I will change the file name (uppercase className) remotely as I'm working on Windows currently (files names case insensitive)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667448 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 09:55:27 +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 42723effc3 Implemented new event handler for Groovy scripts; converted two Beanshell events to Groovy.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662337 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 06:28:55 +00:00
Adrian Crum 2d89f0f365 Form widget Ajax refinements.
Changed attribute-based ajax calls to on-event-update-area elements. Fixed bug in autocomplete. Cleaned up some of the rendering code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661450 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 19:48:24 +00:00
David E. Jones 82df3529e2 More cleanups of now deprecated constructors and what what
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660840 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 07:16:36 +00:00
Jacopo Cappellato 15d63246d6 Added support for xsl-fo and xml templates to the platform-specific screen widget element. Now it is possible to define the same screen that can be rendered with different renderers. An example of this is the SimpleDecorator that is now used to render simple PDF report (xsl-fo), xml export and printer friendly html output. You can test it in the Edit Example screen (and some other screens as well): the PDF and Printer Friendly links in that page both share the same screen definition. Misc fixes to the widget FO and XML renderers, for issues found while testing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659935 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 08:00:10 +00:00
Jacopo Cappellato 1d44046832 Fix for security hole I have introduced while working on the Ajax autocompleter fields.
This is a temporary approach that can be improved.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659658 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 20:57:27 +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
Anil Patel 9ded85445a Fist pass of implementation of Ajax.Autocompleter enhancement for form widget text box. I'll be working on improving this over next few days.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659454 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 06:54:15 +00:00
Adrian Crum 6aea39757d Improved screen widget Ajax support.
The original Ajax work was a great start, but there were limitations. These changes open things up a bit: 1) Ajax rendering falls back to plain HTML when the user has JavaScript disabled. 2) You can have more than one area updated during an event.

IE7 updates only <div> elements, so be aware of that when using the Ajax feature.

See the Example component for a demonstration.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658281 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 15:33:22 +00:00
David E. Jones 0ba6bdd4eb Added background-submit-refresh-target to form field submit, auto-update-target to screen container; also added example that uses thetainer; also updated example to use these new ajax features
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645115 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 15:13:09 +00:00
Andrew Zeneski 9228490a8f added a simple example of using prototype (ajax) with screens
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644429 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 18:03:53 +00:00
David E. Jones 1e4baaf319 Small cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@638241 13f79535-47bb-0310-9956-ffa450edef68
2008-03-18 06:53:55 +00:00
Jacques Le Roux b6b7c017c8 A patch from Adrian Crum "Screen widget show where code came from in html" (https://issues.apache.org/jira/browse/OFBIZ-1318) - OFBIZ-1318
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@594042 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 08:06:40 +00:00
Jacopo Cappellato 69cf27f071 Added new screen and form to the Example application as a proof of concept for a way to create a library of tricks and best practices for form widget definitions; the Example application could then be used as a repository of easily accessible examples for widgets. In this example I've started to document some useful ways to use the drop-down fields.
What do you think? I did this change using the CTR (commit-then-review) policy: if you don't like this idea I will immediately revert.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586349 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 09:39:51 +00:00
Jacopo Cappellato fa7284ec00 Converted appbar of the Example application from ftl to widget menu.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586303 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 08:02:28 +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 d971f0ffec Complete my previous post (I had to change instance because of not related existing changes in controller.xml files)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582731 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 07:08:34 +00:00
Adrian Crum 4503af892a Step two of OFBIZ-1230. Reduced redundant code by including common-requests.xml in each component's controller.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582517 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 17:25:42 +00:00
Adrian Crum b16dfa61f9 Small fixup from last commit. Too many lines were deleted from Example component's controller.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582512 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 16:14:47 +00:00
Jacques Le Roux 13842bd64b A patch from Adrian Crum "Move common requests to a separate xml file to reduce component's controller.xml file size" (https://issues.apache.org/jira/browse/OFBIZ-1230)
Thanks to BJ Freeman to review and suggestion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582509 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 15:17:08 +00:00
Jacques Le Roux 72684a3064 A 2st patch (ofbiz-642-locale_tz.patch)from Adriam Crum "Make OFBiz more dial-up friendly" (https://issues.apache.org/jira/browse/OFBIZ-642)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@555997 13f79535-47bb-0310-9956-ffa450edef68
2007-07-13 13:48:00 +00:00
Jacopo Cappellato 4e8e2dac8e Implemented 'Require Password Change' in ecommerce and manager apps: if the new field in the UserLogin entity is set to Y then, before the login, the user will be prompted for a new password.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@549406 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 06:20:53 +00:00
David E. Jones 583cfeed38 Some improvements to the example component, and added an exampleext component which extends the example webapp to demonstrate extension and overide mechanisms; note that this works except for menu extension which doesn't appear to be working on the framework level
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539833 13f79535-47bb-0310-9956-ffa450edef68
2007-05-20 06:39:54 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Jacopo Cappellato ac33217ca3 Applied patch from Adrian Crum to clean up the layout of the Example application: OFBIZ-887
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@529140 13f79535-47bb-0310-9956-ffa450edef68
2007-04-16 06:28:12 +00:00
David E. Jones 4ee2edf5a4 Small formatting cleanup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@526145 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 12:55:26 +00:00
David E. Jones 544ea7410f A few cleanups, nothing major and no real functionality changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@525960 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 21:16:55 +00:00
Jacopo Cappellato afd04bd768 Enabled support to 'screenfop' view definitions for several output types supported by FOP; they are defined using the content-type attribute in the controller's view definition (application/pdf is the default)); try for example:
application/postscript
application/x-pcl
...
This is the first step toward providing print support for laser/barcode printers.
The change is backward compatible with all the existing view definitions, however I had to update all the controller xml files because I've renamed the view handler class name from ScreenFopPdfViewHandler to ScreenFopViewHandler, to better describe its role in the framework.
OFBIZ-823


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@519268 13f79535-47bb-0310-9956-ffa450edef68
2007-03-17 09:17:54 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
David E. Jones 71a25d953d Remove JPublish and EdenLib, now they are gone; includes doc/notice file updates too
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@485565 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 08:59:37 +00:00
David E. Jones c8e57799cc Appled patch from Bilgin Ibryam to fix missing controller entries for setSessionLocale; ASF Jira #OFBIZ-390
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@465669 13f79535-47bb-0310-9956-ffa450edef68
2006-10-19 16:10:54 +00:00
Jacopo Cappellato bf0711f3c8 Maybe it's not strictly necessary, but I think it's however fine to add the license headers to these files too (mostly text files).
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@463907 13f79535-47bb-0310-9956-ffa450edef68
2006-10-14 10:01:06 +00:00