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
David E. Jones
c9ac857f36
Applied little patch from Ray Barlow to correct unencoded ampersand; Jira #OFBIZ-1174
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574442 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 03:34:31 +00:00
Andrew Zeneski
1413bff0a3
simple implementation of textfield readonly attribute (for html forms)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571237 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 16:41:09 +00:00
Jacques Le Roux
acd59a2780
A patch from Adrian Crum "Improved template rendering error message" ( https://issues.apache.org/jira/browse/OFBIZ-1188 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564974 13f79535-47bb-0310-9956-ffa450edef68
2007-08-11 20:52:20 +00:00
Jacques Le Roux
5de7fe7c5e
A patch from Adrian Crum "HtmlTreeRenderer.java Outputs Improperly Nested <ul> Elements" ( https://issues.apache.org/jira/browse/OFBIZ-1195 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564961 13f79535-47bb-0310-9956-ffa450edef68
2007-08-11 20:00:25 +00:00
Jacques Le Roux
9245703ffc
A patch from Adrian Crum "Improved Time Zone Support, Part 2" ( https://issues.apache.org/jira/browse/OFBIZ-1164 )
...
Please see comments in Jira issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564957 13f79535-47bb-0310-9956-ffa450edef68
2007-08-11 18:40:45 +00:00
Jacopo Cappellato
d98a35d6c8
Implemented a standard XSL-FO template to display error messages returned while rendering XSL-FO reports.
...
This is probably a workaround (the ideal solution is to get the ViewHandlerException better treated by the view handler framwork) but it works to avoid the ugly 'not valid PDF stream' message returned before.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564615 13f79535-47bb-0310-9956-ffa450edef68
2007-08-10 15:21:35 +00:00
Jacopo Cappellato
ca363554cf
Added support for multiple submit fields in multi forms.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@561872 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 17:04:48 +00:00
Jacopo Cappellato
7d1b1c0db5
Small improvement to the widget form renderer for text based forms.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@561234 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 05:52:57 +00:00
Si Chen
f199366c97
Created a new ScreenRenderException to reduce the amount of error messages logged
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@561025 13f79535-47bb-0310-9956-ffa450edef68
2007-07-30 15:59:50 +00:00
Jacopo Cappellato
170938907c
""
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@560947 13f79535-47bb-0310-9956-ffa450edef68
2007-07-30 12:35:59 +00:00
Jacopo Cappellato
2a1960e818
Implemented widget screen renderer.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@560945 13f79535-47bb-0310-9956-ffa450edef68
2007-07-30 12:33:17 +00:00
Jacopo Cappellato
1bd4dbbac0
Two small fixes to the html generated by the form widget renderer.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@560938 13f79535-47bb-0310-9956-ffa450edef68
2007-07-30 12:27:35 +00:00
Jacques Le Roux
e88347441e
A patch from Jeremy Wickersheimer "Enhanced pager for Forms" ( https://issues.apache.org/jira/browse/OFBIZ-1096 )
...
I just added the CommonOf between lines numbers.
Tested with LookupPartyName on Firefox, IE7, and last Opera : works fine
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@560524 13f79535-47bb-0310-9956-ffa450edef68
2007-07-28 09:21:09 +00:00
Jacopo Cappellato
dcaa6b8448
This is the first version of the screen output cache mechanism.
...
It is still not ready for production because it needs much more tests, but I'm already committing it mainly for three reasons:
1) all the changes are well isolated
2) unless you explicitly set use-cache to true in a screen definition, everything will work as usual
3) I'd love to get some feedback from the community
To test it: just set the use-cache attribute to true in a screen definition (<screen name='someName' use-cache='true'>), then you'll find a new entry in the WebTools-->cache screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@559384 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 10:04:28 +00:00
David E. Jones
b9324b9f0f
Changed annoying message to verbose
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@558244 13f79535-47bb-0310-9956-ffa450edef68
2007-07-21 05:17:14 +00:00
Hans Bakker
345228eda8
ofbiz-1155: problem with 2 <content tags in a screen definition: solved now
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@557859 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 03:30:39 +00:00
Jacques Le Roux
6c9cf43d7c
Reverted from 557554 to 553237 and reapplied the patch from https://issues.apache.org/jira/browse/OFBIZ-1152
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@557582 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 11:43:34 +00:00
Jacques Le Roux
3e9468e09d
A patch from Pierre Gaudin "error in view-size used for paginate = "false" form" ( https://issues.apache.org/jira/browse/OFBIZ-1152 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@557554 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 10:17:29 +00:00
Jacques Le Roux
174bcd8621
A patch from Shi Yusen "zh properties in progress" ( https://issues.apache.org/jira/browse/OFBIZ-617 )
...
The framework part was still waiting to be commited
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@556459 13f79535-47bb-0310-9956-ffa450edef68
2007-07-15 21:40:04 +00:00
Jacopo Cappellato
d27339035f
Misc fixes to the new widget form text renderer.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@556401 13f79535-47bb-0310-9956-ffa450edef68
2007-07-15 12:30:48 +00:00