Commit Graph
207 Commits
Author SHA1 Message Date
Jacopo Cappellato b58053df4b For backward compatibility we load the html platform-dependent template if the one for xsl-fo is not found.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660108 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 06:37:58 +00:00
Hans Bakker 5c1efd4679 allow the menu usage also in a column: see the sfa component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659942 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 09:13:52 +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
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 e0ff3ccfed Some Ajax fixups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658467 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 22:35:52 +00:00
Adrian Crum a740aa2ad5 Small fixups for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658351 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 17:12:35 +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
Adrian Crum a3536990f1 Locale and Time Zone refactor and bug fixes.
1. Modified the Start class to initialize the JVM default locale and time zone - configurable through start.properties. Removed calls to UtilDateTime.getDefaultTimeZone() - no longer needed.

2. Changed all calls to ObjectType.simpleTypeConvert(...) that didn't supply the necessary Locale and TimeZone objects. This fixes a lot of localization issues, https://issues.apache.org/jira/browse/OFBIZ-1696 being one of them.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658045 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 23:50:14 +00:00
David E. Jones d60415c2cb Added groovy support, implemented by Joe Eckard in jira #OFBIZ-1779; includes an example EditProductFeatures.groovy file showing somatures.groovy file showing some nice groovy syntax features, especially for Maps and Lists, though it isn't on by default yet in this commit, ie bsh still used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@657645 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 21:57:07 +00:00
Adrian Crum 4195b35a78 Added JavaScript detection to the framework. See https://issues.apache.org/jira/browse/OFBIZ-1648.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655712 13f79535-47bb-0310-9956-ffa450edef68
2008-05-13 02:25:55 +00:00
Adrian Crum 14dcf6a65a Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655616 13f79535-47bb-0310-9956-ffa450edef68
2008-05-12 19:39:48 +00:00
Adrian Crum 3cbe1f844e Might as well make the default view size configurable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655606 13f79535-47bb-0310-9956-ffa450edef68
2008-05-12 19:13:00 +00:00
Adrian Crum 4fddac4c67 Implemented page size defaults for the form widget lists. Some code was already there, but it wasn't being used.
The form widget defaults to 10 items per page. That setting can be changed with the <form> element view-size attribute.

This commit eliminates the need for setting VIEW_SIZE and VIEW_INDEX parameters in the screen definition. I updated an Accounting screen in this commit to demonstrate.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655550 13f79535-47bb-0310-9956-ffa450edef68
2008-05-12 16:29:30 +00:00
Scott Gray 153653615b Removed the rest of the calls to deprecated GenericDelegator methods, except for the findListIteratorByCondition which takes a DynamicViewEntity as a parameter not sure what to do about that one.
There's still all the bsh files to check though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655235 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 03:29:04 +00:00
Scott Gray 0792342f2a Removed more calls to deprecated GenericDelegator methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655016 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 06:24:19 +00:00
Adrian Crum 9f8aa0c750 Fixed a bug in the Form Widget where alt-target elements in extended forms were being added to the parent form's alt-targets. Also overriding an alt-target in an extended form works now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654586 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 17:42:22 +00:00
Adrian Crum 538d6c3d6e Fixed bug in screen widgets where inter-app links didn't work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653896 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 20:02:21 +00:00
David E. Jones 329631a4b5 A whole bunch of cleanups to use newer and more consolidated delegator find methods; still lots of deprecation warnings, bots of deprecation warnings but this is a first pass, and things still run as before
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653029 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 09:40:51 +00:00
Adrian Crum 1ef057402c Fixup for previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652712 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 23:39:51 +00:00
Adrian Crum cb6643f1cf widget-menu.xsd change - eliminated default values that use deprecated CSS styles. I posted a message on the dev ml about this - if there is any problem with it, then I'll revert it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652703 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 22:51:57 +00:00
Adrian Crum ed368cea2c Fixed the menu widget - the "extends" feature didn't work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652702 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 22:47:54 +00:00
Scott Gray 323263e546 Added the ability to hide the search options of the form widget's text-find widget
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@651376 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 20:07:53 +00:00
Jacopo Cappellato b9601d8226 Implemented support for skip-start attribute in form of type "multi".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@649399 13f79535-47bb-0310-9956-ffa450edef68
2008-04-18 08:01:57 +00:00
Jacopo Cappellato 6c3f8d27f8 Added descriptions for the also-hidden attributes, based on feedback from the user list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645135 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 16:42:53 +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
David E. Jones 3141bca290 Finished form to link/target request artifact info stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644179 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 06:06:48 +00:00
David E. Jones cee5387a8d Removed xml header from fo wrapper, it is now added by the view handler if not there already; fixes problem with widget.verbose=true; fixes problem with widget.verbose=true; various cleanups too
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644081 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 21:53:06 +00:00
David E. Jones 75b1f73652 Setting this to true by default, which is already mentioned in the technical production setup guide
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@643976 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 17:16:58 +00:00
Jacopo Cappellato a0afe9fcfc Added support for localized entity content to display-entity form fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@643853 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 11:29:36 +00:00
David E. Jones 630950c653 Refactored xml file searching to make more general, now used to search for controller xml files for requests referred to in screen linktroller xml files for requests used in screen defs, code for forms soon to come
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@641730 13f79535-47bb-0310-9956-ffa450edef68
2008-03-27 07:53:39 +00:00
Jacopo Cappellato 0e75a4abb1 Added support for get-related* operations in entity related information for artifact infos.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639780 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 19:58:09 +00:00
Jacopo Cappellato ed40464081 Fix to properly populate artifact info for forms that extend other form in the same file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639488 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 22:32:51 +00:00
Jacopo Cappellato a2bf8ce9bf Implemented artifact information about forms extended by forms.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639474 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 21:48:30 +00:00
Jacopo Cappellato 338a6b05d5 Implemented artifact information about services used by forms.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639464 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 21:24:02 +00:00
Jacopo Cappellato 3bdfa77c57 Implemented artifact information about entities used by forms.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639458 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 21:07:46 +00:00
Jacopo Cappellato f211b49c4e Improved methods to retrieve all the services used by a screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639374 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 17:22:55 +00:00
Jacopo Cappellato 31dcb40b3b Improved methods to retrieve all the entities used by a screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639358 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 17:01:13 +00:00
Jacopo Cappellato 9ff5d1b56b Implemented artifact information about forms included in screens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639342 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 16:17:48 +00:00
Jacopo Cappellato 3478429d46 Added artifact information about services used in screens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639017 13f79535-47bb-0310-9956-ffa450edef68
2008-03-19 21:02:59 +00:00
Jacopo Cappellato 41060a97c6 Added artifact information about entities used in screens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@638993 13f79535-47bb-0310-9956-ffa450edef68
2008-03-19 20:10:48 +00:00
Jacopo Cappellato dee15e7d95 Implemented initial work on the retrieval of all the form and screen definitions for the artifact info classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@638560 13f79535-47bb-0310-9956-ffa450edef68
2008-03-18 20:47:51 +00:00
Christian Geisert 339055413e Setting svn properties (svn:eol-style,svn:mime-type,svn:keywords)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634603 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 10:20:31 +00:00
David E. Jones 2bf0afbe4a No real functional changes to operational code, just new stuff for getting meta data about entities, services, etc from the system
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633325 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 23:37:14 +00:00
Hans Bakker d3732f6bc3 convert most of the framework language properties files to xml and added the thai language
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630751 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 07:39:46 +00:00
David E. Jones 80acfcb716 Fixed tabs to spaces; it is evil that eclipse comes with this sort of default...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628703 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 12:34:08 +00:00
David E. Jones be0c6d13c5 A cleanup of the form widget so that ModelForm is initially created without a delegator and dispatcher but only model data, and then thator and dispatcher but only model data and then the del/disp come from the render context
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628699 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 12:18:38 +00:00
Adrian Crum 3a8d9f2ca8 A couple of fixups for my last commits.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@627113 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 21:13:04 +00:00
Adrian Crum 82cef0d975 New screenlet widget. For details, refer to the xsd or the Jira issue - https://issues.apache.org/jira/browse/OFBIZ-1626.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@620699 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 03:57:14 +00:00
Adrian Crum 1d3e1a2d4f Another fixup for previous commit, based on David's advice.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@619599 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 19:44:51 +00:00
Adrian Crum 002ad971ab Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@619570 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 19:01:51 +00:00