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
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
Jacopo Cappellato
88631750a8
Added missing 'List' type (taht is supported) to the 'set' operation definition to avoid validation errors.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604173 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 11:43:19 +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
Jacopo Cappellato
2dc6bc2c7b
Disabled widget.verbose: it is breaking all the PDF reports. This is a temp fix but we will need to review this feature.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600205 13f79535-47bb-0310-9956-ffa450edef68
2007-12-01 22:37:42 +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
9180f6441b
corrected description of previous commit
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598505 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 03:12:34 +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
Jacques Le Roux
7c8310a68a
A slightly modified patch from Adrian Crum "Enable HTML whitespace removal through debug.properties element" ( https://issues.apache.org/jira/browse/OFBIZ-1420 ) - OFBIZ-1420
...
I finally uncommented the line widget.verbose=true in widget.properties and put an help in http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide#ApacheOFBizTechnicalProductionSetupGuide-Widgetssetting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598362 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 17:58:54 +00:00
Alfred Maxwell Byers
ed0af26bfc
Added matching MapStack pop per Jonathon's suggestion.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598361 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 17:49:09 +00:00
Jacques Le Roux
76d9f6bfc2
A patch from Adrian Crum "Improved UtilDateTime.java, Framework Default TimeZone Suppor, with getMonthNames also" ( https://issues.apache.org/jira/browse/OFBIZ-1377 ) - OFBIZ-1377
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@594088 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 11:50:09 +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
2553b880ef
Fixed wrong check that was causing a missing colspan attribute under special circumstances.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@593134 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 11:50:14 +00:00
Jacopo Cappellato
a872513a24
Added support to text-find fields for != operation.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@592718 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 11:37:51 +00:00
David E. Jones
efd9b291fa
Reformatting change only
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589968 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 05:58:06 +00:00
David E. Jones
202d5c420d
Fixed issue with new Blob on the entity level and ByteBuffer on the service level stuff related to persisting actual bytes in the db related to persisting actual bytes in the db instead of an object wrapper; also some improvements to the null value and entity, etc; the main issue here was reported by guo weizhan
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589517 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 06:35:19 +00:00
David E. Jones
75c26763e5
Fairly significant update to correct a long-standing problem; reverted ByteWrapper back for backward compatibility, and then replaced all use of ByteWrapper with java.nio.ByteBuffer; the main point is to both store only the byte[] data in the database and not a serialized object containing the byte[], and at the same time be able to read the old ByteWrapper objects, and there is a service to read and update all old data to be plan bytes instead of wrapped in a serialized object; this includes changing the java-type for blob fields to be java.sql.Blob to greater compatibility and flexibility, ie you can either set a plain byte[] or you can pass in a Blob object to be persisted, you can also get both as get returns java.sql.Blob, but getBytes always returns the byte[], converting as needed; this is tested a fair amount, but obviously needs to be watched as it is new code
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587433 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 09:52:49 +00:00
Jacques Le Roux
ae76370a04
Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
...
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl
Those links were useless before also
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
Jacopo Cappellato
e37974e322
Applied (slightli different version od) patch from Marco Risaliti (OFBIZ-1355) to fix the ugly layout for empty cells in IE.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586690 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 09:45:50 +00:00
Jacopo Cappellato
6c988dc352
Applied patch from Jeremy Wickersheimer OFBIZ-1118 to provide a default value for the pagination-target: if not specified, now the attribute is retrieved from the request target uri.
...
It is now possible to remove most of (if not all) the paginate-target attributes set in form definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586449 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 13:42:47 +00:00
Jacopo Cappellato
b919e9d9ae
Applied patch from Marco Risaliti to fill empty table cells with the character: this wfixes the ugly layout in IE.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586446 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 13:37:35 +00:00
Adam Heath
56ae98f437
Make use of UtilCache.findCache.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585801 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:41:30 +00:00
Jacopo Cappellato
adfb93a6e2
Removed duplicated quote; thanks to Bilgin Ibryam for the patch OFBIZ-1344
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585399 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 06:57:43 +00:00
Jacopo Cappellato
fefd8ae37e
Added support for default-value attribute to the set operation in form widget actions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@583366 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 06:34:13 +00:00
Jacopo Cappellato
ae24b42ad7
Added ability to specify an event/action pairs on an hyperlink field.
...
Added escape code for input text fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@583091 13f79535-47bb-0310-9956-ffa450edef68
2007-10-09 10:17:22 +00:00
Jacques Le Roux
735deae442
This solve the "Quote WorkEffort bug" issue reported by Bilgin Ibryam ( https://issues.apache.org/jira/browse/OFBIZ-1180 ) - OFBIZ-1180.
...
It does not solve the issue reported in comment https://issues.apache.org/jira/browse/OFBIZ-1180#action_12524674 "Adding WorkEffort to Communications in party manager is also broken due to extending EditWorkEffort." because then we get java.lang.IllegalArgumentException: Could not find screen with name [EditCommEventWorkEffort] in class resource [component://party/widget/partymgr/CommunicationScreens.xml]. But this is another problem : no EditCommEventWorkEffort screen is declared in CommunicationScreens.xml ! I will create a new issue for that...
I wait a bit before back porting in release4.0, to be sure that my (very simple) solution is ok for everybody.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582338 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 16:35:33 +00:00
Alfred Maxwell Byers
f751ac43e1
Tuning the method so that it gives passed dataResourceId priority over passed contentId, but not
...
over content.dataResourceId.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578181 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 15:49:07 +00:00
Alfred Maxwell Byers
e0d985e8cc
The content widget was not using the dataResourceId attribute. To make it work I had to
...
copy someone's brilliant WidgetContentWorker pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577932 13f79535-47bb-0310-9956-ffa450edef68
2007-09-20 21:30:44 +00:00
Alfred Maxwell Byers
48b92accf0
Added FreeMarkerWorker.getSiteParameters to render method.
...
This data, particularly "rootDir", is used loading FTL content templates.
I figured it could not hurt normal screen rendering.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576757 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 07:49:16 +00:00