Jacques Le Roux
21fc2f91ba
A patch from Fabien Carrion "To permit to have a view with jasperreports to export to excel using the poi api, or the jxls api." ( https://issues.apache.org/jira/browse/OFBIZ-1250 ) - OFBIZ-1250
...
JasperReports is any longer used in OFBIz but this might be helpful in some occasions. As it changes anything (I reviewed but no tested) I prefer to commit than ignore.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604728 13f79535-47bb-0310-9956-ffa450edef68
2007-12-16 22:38:02 +00:00
Jacques Le Roux
38e0ac0aab
Now by default if an user is timed out user or has blocked the POS any other user can login.
...
This behavior is reversible using isSameLogin parameter in new xui.properties.file
Note that this behavior is not specific to POS and could be used by any applications using XUI
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604423 13f79535-47bb-0310-9956-ffa450edef68
2007-12-15 12:56:27 +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
Jacques Le Roux
b61b18b490
A patch from Daniel Martínez "Make user input change background colours of formulars" ( https://issues.apache.org/jira/browse/OFBIZ-660 ) - OFBIZ-660
...
Note : only when the change comes from calendar or lookup. I will revert if it annoys somebody...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603893 13f79535-47bb-0310-9956-ffa450edef68
2007-12-13 11:40:07 +00:00
Marco Risaliti
4e8185593a
new css class to have the same style for ftl and screen widget (Part of issue OFBIZ-1372)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603733 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 20:44:16 +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
Jacques Le Roux
279c6b8313
A patch from Chris Howe <<Missing "not-like" condition in Simple Methods>> ( https://issues.apache.org/jira/browse/OFBIZ-1433 ) - OFBIZ-1433
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603152 13f79535-47bb-0310-9956-ffa450edef68
2007-12-11 06:14:23 +00:00
Adrian Crum
705d7ed4b0
Enable entity reference PDF menu item now that fop rendering speed has been fixed.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603108 13f79535-47bb-0310-9956-ffa450edef68
2007-12-11 01:01:58 +00:00
Adrian Crum
2562f6a713
Created a fop log4j logger because the root logger setting of "all" was bogging down fop rendering.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603107 13f79535-47bb-0310-9956-ffa450edef68
2007-12-11 00:57:15 +00:00
Adrian Crum
24b9ab8268
Small fixups for last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603059 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 21:44:30 +00:00
Adrian Crum
b91ca87911
UtilProperties bug fix and enhancements.
...
This commit fixes the bug reported in https://issues.apache.org/jira/browse/OFBIZ-1488 and it includes a few of the improvements mentioned in https://issues.apache.org/jira/browse/OFBIZ-1485 . This commit also lays the groundwork for improved properties file support in the future.
This commit contains a new xsd file - it needs to be included on the apache ofbiz website. XML properties files will generate console error messages until it is.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603024 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 20:04:01 +00:00
Hans Bakker
7451815b62
show number of days between timestamps and add a day to a timestamp. I realize this is perhaps not the best method, but it works. If somebody has suggestions to do it better, pleae let me now, i will change it....
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@602650 13f79535-47bb-0310-9956-ffa450edef68
2007-12-09 07:58:41 +00:00
Jacques Le Roux
d81e21d5e2
A patch from Fabien Carrion "Correct a problem with calendar window popup" ( https://issues.apache.org/jira/browse/OFBIZ-1251 ) - OFBIZ-1251
...
Specific to Firefox and the extention Tab mix plus activated on enable single window mode.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@602586 13f79535-47bb-0310-9956-ffa450edef68
2007-12-09 00:02:17 +00:00
Adrian Crum
962ab2ef79
Added new FOP templates and decorator. The new FOP decorator operates more like the screen GlobalDecorator. Parameters can be passed to templates via the layoutSettings Map, and there is an assortment of standard page size templates.
...
This improvement was proposed in Jira - https://issues.apache.org/jira/browse/OFBIZ-1410 . Many thanks to Jacopo for his great suggestions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@602516 13f79535-47bb-0310-9956-ffa450edef68
2007-12-08 17:25:08 +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
David E. Jones
c41422d5f0
Added comments and an if to protect a call to remove just in case this method is used in the future in anything other than the JobInvoker.run method
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@601382 13f79535-47bb-0310-9956-ffa450edef68
2007-12-05 16:01:51 +00:00
Jacopo Cappellato
af320519e0
Applied patch from Adrian Crum (OFBIZ-1422) to fix some cases where aliased entity fields were losing their description element.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@601072 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 20:27:19 +00:00
Adrian Crum
dcf6a61c50
Improved entity reference screen - now has better field definitions. Based on discussion in https://issues.apache.org/jira/browse/OFBIZ-1425 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@601056 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 19:40:38 +00:00
Scott Gray
463d79858f
Running a simple method bombs if you don't pass in a locale.
...
The other option was to get the default locale if one wasn't passed in when creating the MethodContext but I don't know much about that so I took the easy road :-)
On the bright side another one of the unit tests now passes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600864 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 10:00:24 +00:00
Scott Gray
ccc31cb640
Fixed invalid location
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600862 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 09:55:56 +00:00
Scott Gray
592b4a2229
Don't use getInParamNames because it returns a TreeSet which means the parameters are sorted by name rather than the order they are defined in the service def. The unit test for XML-RPC now passes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600834 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 08:35:04 +00:00
Scott Gray
212733027f
getNextSeqId requires a valid entity name
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600830 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 08:16:36 +00:00
Adrian Crum
1367a57349
Updated Example component to new XML properties files. Two languages are still in need of conversion.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600647 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 19:48:39 +00:00
Jacques Le Roux
703bafe452
Typo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600355 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 18:44:18 +00:00
Jacques Le Roux
7e60f4cec9
A patch from Jeremy Wickersheimer "makeLoginUrl doesn't URL encode the strings" ( https://issues.apache.org/jira/browse/OFBIZ-1199 ) - OFBIZ-1199
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600278 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 12:58:01 +00:00
Jacques Le Roux
e56f73b1e1
Where RBE proves its usefulness (though CMSSite seems not yet used)
...
I double-checked changes in rev 600214. Just some instability when opening already open files with RBE outside of RBE and saving them without having saved files in RBE before
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600270 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 11:11:53 +00:00
Anil Patel
cf5eef5c10
moved screenxml and screentext handlers from facility controller to common-controller so that they are available in wider scoop.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600251 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 06:00:51 +00:00
David E. Jones
2a3f7fe13a
Some more backward compatibility to use getBytes if getBlob fails; gotta love JDBC
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600224 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 01:20:52 +00:00
Jacques Le Roux
828a4a3203
This fixes a problem in dropdowns using CommonGoTo (not localised). I moved CommonGoTo from eCommerce to Common because no components should rely on Ecommerce which is no really a "core application".
...
I used RBE to do the work (a breeze). There are a lot of false changes but don't worry, I checked them all (not a breeze).
There are only 2 types of false
. properties not sorted (they are all sorted now)
. properties using lowercase for UTF8 encoding
I still thing that all properties should be sorted and should be using uppercase to avoid false changes. Anyway maybe soon we will not relay anymore on property files and this kind of inconveniences will not appear anymore.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600214 13f79535-47bb-0310-9956-ffa450edef68
2007-12-01 23:39:37 +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
David E. Jones
0c171dd783
This is a fix for the lock wait timeout problem that was happening for large sets of orders and other high volume operations, and long-lived operations with lots of asynchronous service calls; this includes some diagnostic code to show the status of transactions in other threads when a lock wait timeout error is detected; the main fix here is a big cleanup of the concurrency handling in the JobManager and JobPoller objects, including the use of sleep instead of wait for more strict and consistent sync locking, and the use of different objects for locking different parts of that class since some are meant to be used by various other threads (like the queueNow and next methods) and others are only for the poller thread, like the run method; this also includes certain other small cleanups and improvements, like using FastList/FastMap more
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600164 13f79535-47bb-0310-9956-ffa450edef68
2007-12-01 16:50:00 +00:00
Si Chen
57497c7c7c
Print exceptions when a unit test fails.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@599939 13f79535-47bb-0310-9956-ffa450edef68
2007-11-30 20:08:47 +00:00
David E. Jones
5a4ee94bad
Updated logo with new file from Ryan Borrowman, source and high res files are on docs.ofbiz.org
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@599756 13f79535-47bb-0310-9956-ffa450edef68
2007-11-30 09:41:33 +00:00
Jacques Le Roux
c4ed583e5e
Replaces the site name
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@599396 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 11:59:00 +00:00
David E. Jones
26e7099538
Applied patch from Adrian Crum in Jira OFBIZ-1442 to support a new format for localization in XML files
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@599356 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 09:37:10 +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
Jacques Le Roux
ac9c5853ae
A patch from Michael Brohl "StringUtil.htmlSpecialChars: ampersand replaced with "&s;" instead of "&"" ( https://issues.apache.org/jira/browse/OFBIZ-1431 ) - OFBIZ-1431
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598679 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 15:51:01 +00:00
David E. Jones
39e6c63453
Added Uoms for special cases; technically the Each uom is assumed if there is no uom, but with this can make explicit, or qualify wi no uom specific, but with this can be explicit or qualified further with something like the per person
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598575 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 09:53:04 +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
aafab5d951
To avoid NPEs in Webtools/Minerva Connection Info (did not look further to check if it works fine)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598288 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 14:30:44 +00:00
Jacopo Cappellato
97f25673f4
Added Xalan jars from Fop 0.94 distribution: they are required, due to a bug in FOP (see http://issues.apache.org/bugzilla/show_bug.cgi?id=43542 ) when user defined fonts are used.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598214 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 10:44:18 +00:00
Hans Bakker
473745822e
make the form input field:<date-time type=date/> working
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@597818 13f79535-47bb-0310-9956-ffa450edef68
2007-11-24 06:43:50 +00:00
Jacques Le Roux
f520931be7
Slightly modified annotation/documentation for complex-alias from Skip Dever proposition in "Additional documentation for View entities" https://issues.apache.org/jira/browse/OFBIZ-1419
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@597488 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 21:03:57 +00:00
Jacopo Cappellato
9be11dc39d
Implemented new signature (that accepts a parameters Map instead of an HttpServletRequest) for the util method: makeParamMapWithPrefix.
...
Added code to the ShoppingCartHelper..addToCart method to prepare a map of additiona features for the cart (if additional features are selected during order entry).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@597166 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 18:10:04 +00:00
Adrian Crum
cab8514182
Entity Reference PDF file generation code. I have the main page link commented out until we can solve the issue brought up in https://issues.apache.org/jira/browse/OFBIZ-1401 .
...
Anyone wanting to generate the document can go to this link: https://127.0.0.1:8443/webtools/control/view/entityrefReport Be patient, it will take a very long time (1+ hours).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@596885 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 00:05:44 +00:00