Commit Graph
11 Commits
Author SHA1 Message Date
Jacopo Cappellato d0cf4510fc First version of the class to render fo templates out of form widgets:
* a new FoFormRenderer class that implements the FormStringRenderer interface in order to provide a fo representation of a form widget definition.
* small change to ModelForm class (new getter method) needed because I have to read the form's list
* moved the initialization of the "formStringRenderer" object, from the ScreenRenderer class to the ScreenFopPdfViewHandler and ScreenWidgetViewHandler classes (so that the former can instantiate the new FoFormRenderer class and the latter the HtmlFormRenderer)

The FoFormRenderer class is far from complete:

* in single forms, the position attribute is ignored (nulti columns single forms are not still supported)
* all the style attributes from the form definitions are ignored
* in list forms, all the columns are rendered with the same size
* left/center/right alignment of cells' content is not supported
* field groups are not supported
* banner and image fields are not supported
* in general see the TODO comments near the methods that should be implemented

However we can now render both list and single forms in a nice PDF format without errors.


git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@429966 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 05:09:45 +00:00
Si Chen 0a589bb6f1 Change defaults of ModelFormField to be same as XSD and moved the dropdown box to before the entry field OFBIZ-64
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@429909 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 01:09:54 +00:00
David E. Jones bea65ea45b Addressed some issues with i18n stuff and comparisons, type conversions; for numbers spaces are removed before parsing; for comparing with constants the en locale is assumed, ie the right value or value2 is mean to be a constant (we might have to do something with expanded strings here, but there string expansion should also generally expand numbers in the system or en locale; may still be an issue there, but the FlexibleStringExpander does a toString to this should be fine); this should fix Apahce Jira OFBIZ-133 and OFBIZ-136
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@429249 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 06:11:08 +00:00
David E. Jones 16a808de60 Applied patch from Peter Goron in Apache Jira #OFBIZ-128; should fix issue with form widget prev/next URLs when cookie sessions not used; have not tested extensively, but should not have side effects
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@429239 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 04:58:53 +00:00
Jacopo Cappellato 0d1b150e70 Two changes to the way search fields are rendered in form widgets:
1) in thext fields, the "ignore case" option is true by default and the "begins with" option is the defalt one
2) the available search options for text and date fields are now rendered with drop down boxes instead of radio boxes

OFBIZ-64

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@427905 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 05:55:21 +00:00
Jacques Le Roux 47fb1295a2 The introduction of spaces around = was annoying for synchro of Neogia. I reverse without it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@426467 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 10:10:16 +00:00
Jacques Le Roux 5f9d8563d9 Update of french labels
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@426429 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 08:17:45 +00:00
Hans Bakker a11fffe61c date search field in form widget had 'same_day' and 'equals' checked both. This gave problems in the Konqueror browser under kde linux which did not select anything
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@424145 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 00:14:24 +00:00
Jacopo Cappellato 13ab84d538 License change from MIT to ASL2.0 for the files of the widget component.
Thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@423829 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 08:46:57 +00:00
David E. Jones edeedd289d Some minor XSD changes, mostly moving documentation over from the MiniLang Guide to annotations for the simple-map-processor; a lot to do for the simple-method...
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@421508 13f79535-47bb-0310-9956-ffa450edef68
2006-07-13 06:08:18 +00:00
David E. Jones 94fe6d1cda Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00