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
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
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
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
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
Adrian Crum
b9d96be3eb
Small enhancement to the ModelScreenWidget class. Created member variables for ModelForm and ModelMenu, and provided accessor methods to retrieve those variables.
...
This should speed up screen rendering a bit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@619566 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 18:54:07 +00:00
Adrian Crum
5843e9742c
Added the ability to call simple methods from screen widgets. This eliminates the need to define a service to call a simple method.
...
Just use the <script location="component://... .xml#methodName" syntax. The simple method call works just like a service event - the result Map elements are copied into the screen context.
Note that this enhancement should NOT be used to circumvent existing services - since many processes depend upon SECAs, which won't get executed using this screen widget operation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@616639 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 05:49:25 +00:00
Jacopo Cappellato
e385c3df95
Implemented support for the autocomplete attribute in form widgets.
...
The attribute autocomplete="on/off" is supported by most browsers in input fields of type "password" and "text" and also in the "form" element and it controls the autocomplete features of the browser.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@614619 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 18:53:44 +00:00
Jacopo Cappellato
ad8de3b8b6
Modified some of the form rendering method to output to a Writer instead of a StringBuffer: this will allow form widgets to be used to process large lists (not paginated).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@612492 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 15:46:32 +00:00
Scott Gray
66523651b4
When using auto-fields-service in the form widget, whether a service parameter is optional or not is now carried over to the form field being required or not, obviously required = !optional.
...
Also when overriding a form field you can now override whether the field is required or not. This involved updating the form widget schema to remove the default value, so it won't have any effect until I update the website.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@608730 13f79535-47bb-0310-9956-ffa450edef68
2008-01-04 03:40:39 +00:00
Scott Gray
f022a2e134
The menu widget's hide-if-selected wasn't working, turns out that ModelMenu's currentMenuItemName was never being set, so fixed that and changed ModelMenuItem.isSelected() to make use of it as well
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@607999 13f79535-47bb-0310-9956-ffa450edef68
2008-01-02 04:04:22 +00:00
Adrian Crum
5fd21c9c37
Small enhancement to menu widget rendering to make it more compatible with other widgets. Rendering of <a> elements is suppressed if no link target is specified. This will allow the rendering of labels, captions, etc by using the <link> menu widget element without the target attribute.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@607444 13f79535-47bb-0310-9956-ffa450edef68
2007-12-29 16:43:28 +00:00
Adrian Crum
bdafd3b7ff
Small fixup in form widget rendering.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@607322 13f79535-47bb-0310-9956-ffa450edef68
2007-12-28 20:21:15 +00:00
Adrian Crum
4b20e7adc2
Improved error handling in the FOP view handler.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@607100 13f79535-47bb-0310-9956-ffa450edef68
2007-12-27 17:54:35 +00:00
Adrian Crum
5b7f4024ad
Improved error handling in ScreenFopViewHandler.java. Original error handling was:
...
Try to render screen using fop
If that fails, try to render error message using fop
If that fails, throw an exception (results in blank screen)
The new error handling is:
Try to render screen using fop
If that fails, try to render error message using HTML screen widget
If that fails, log a debug message
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603703 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 18:51:53 +00:00
Adrian Crum
b584b3549b
FOP code improvements, based on https://issues.apache.org/jira/browse/OFBIZ-1414 .
...
The Jira issue mentions rendering to temp files, but I kept that out of the commit. If we get out of memory errors in the future, it will be easy to add it back in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603483 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 06:38:23 +00:00
Adrian Crum
b33da1edc2
Fixed problem where screen widget DTD allows multiple tags within the <html> element, but the widget code renders only one.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@602515 13f79535-47bb-0310-9956-ffa450edef68
2007-12-08 17:20:14 +00:00
Si Chen
066013283b
Report freemarker file not found error to the screen so we don't have to dig through a very messy log to find it.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598813 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 23:12:00 +00:00
Hans Bakker
04c050c864
avoid index out of range error on display type=date form field
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598519 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 05:26:35 +00:00
Hans Bakker
cd0f0bfada
OFBIZ-1430 only show date part of a timestamp in the form display
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598492 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 02:18:08 +00:00