Jacques Le Roux
f2d7b941f7
As discussed on dev ML, by default comment out Beanshell and Groovy containers for security reasons
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063235 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:35:04 +00:00
Jacques Le Roux
357eda99e0
Revert file commited by error at r1063228
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063234 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:33:23 +00:00
Jacques Le Roux
41f04cefbb
As discussed on dev ML, by default comment out Beanshell and Groovy containers for security reasons
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063228 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:25:23 +00:00
Jacques Le Roux
d42aaef2b8
A patch from René Scheibe "Groovy shell." ( https://issues.apache.org/jira/browse/OFBIZ-3954 ) - OFBIZ-3954
...
A Groovysh container to connect to. Just do a 'telnet localhost 9991' and you have a fully fledged groovysh.
This is a Groovy equivalent to the already existing BeanShell container.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062476 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 17:58:43 +00:00
Erwan de Ferrieres
ec5adee63b
Displaying help was in error in the big topics, buffer.flip() was misplaced
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061189 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 10:10:52 +00:00
Erwan de Ferrieres
1dedf4711c
Upgrading to tomcat 6.0.30 - Changelog is here: http://tomcat.apache.org/tomcat-6.0-doc/changelog.html
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061169 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 09:14:24 +00:00
Jacopo Cappellato
0ed73fe64c
Added a bunch of missing license headers.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058580 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 14:25:38 +00:00
Jacopo Cappellato
a6922893a3
hot-deploy component are now always loaded in alphanumeric order; before this change they were loaded randomly (in a platform dependedent way).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055411 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 11:05:13 +00:00
Adrian Crum
35da2271fa
Added two new UEL functions to make date/time display more user friendly. Form widget example:
...
<field name="someTimeStamp">
<display description="${date:localizedDateTimeStr(someTimeStamp, timeZone, locale)}"/>
</field>
will display the date/time according to the user's locale, instead of yyyy-mm-dd hh:mm:ss.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054211 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 09:05:44 +00:00
Hans Bakker
50b24e3ee5
the first version of a product image management system to upload/approve and manupulate product images, see catalog -> image management
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052521 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 15:22:49 +00:00
Jacques Le Roux
1221defad7
Better solution for "Bug In Jquery Integration - js File Not Found" ( https://issues.apache.org/jira/browse/OFBIZ-4060 ) - OFBIZ-4060
...
A jquery.ui.datepicker i18n file is missing for the language.country couple you want. Simply add it there: [" + baseLocation + "]. Else anyway the 'en' default will be used", module)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052494 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 12:12:05 +00:00
Jacques Le Roux
52c7d137e8
Fix "Bug In Jquery Integration - js File Not Found" ( https://issues.apache.org/jira/browse/OFBIZ-4060 ) - OFBIZ-4060
...
We don't care for missing jquery.ui.datepicker i18n files, since "en" as default is handled internally. If people want a missing translation they have to add the file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052492 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 11:59:54 +00:00
Erwan de Ferrieres
adbf783134
Adding ivy to OFBiz and make an example with cobertura. No more errors when running tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050915 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 17:38:57 +00:00
Jacques Le Roux
26fcb9eb4c
I think this is the correct solution for the problem I temporarily fixed some hours ago (r1050364+r1050367: was for a blocking deadlock issue, see https://issues.apache.org/jira/browse/OFBIZ-4065 - OFBIZ-4065 for details)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050452 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 17:04:27 +00:00
Jacques Le Roux
159aaa42e9
Temporary(?) fix, follows r1050364
...
(r1050364 was for a blocking deadlock issue, see https://issues.apache.org/jira/browse/OFBIZ-4065 - OFBIZ-4065)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050367 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 12:51:55 +00:00
Jacques Le Roux
95ec1c0d52
Temporary(?) fix for a blocking deadlock issue, see https://issues.apache.org/jira/browse/OFBIZ-4065 - OFBIZ-4065
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050364 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 12:28:27 +00:00
Christian Geisert
2d501d0876
Log if there's a problem (i.e. invalid XML) when loading XML-Properties
...
see OFBIZ-4045
submitted by Georg Koester
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050186 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 21:56:14 +00:00
Scott Gray
2ecc4b2494
Removed unnecessary SuppressWarnings annotations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044932 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:51 +00:00
Scott Gray
47f43a302a
Remove unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
Scott Gray
75b0b1c1e3
Remove unnecessary semicolons
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044917 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:43:03 +00:00
Scott Gray
bdd23c22d5
Add missing override annotations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044913 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:41:27 +00:00
Adam Heath
a2fd254167
Make FreeMarkerWorker.getWrappedObject auto-cast to whatever type the
...
caller wants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044232 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:21:09 +00:00
Adam Heath
d61ce6486f
Move variable declarations until they are actually used, instead of
...
assigning null, then force-reassigning the real value later.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044230 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:49 +00:00
Adam Heath
90c849bb36
Remove unnecessary cast when fetching the compiled template from the
...
UtilCache cache.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044229 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:42 +00:00
Adam Heath
762a3b6630
Fix some spacing issues, no code changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044228 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:35 +00:00
Adam Heath
2f6217251a
Set svn:eol-style properly on all java files. This needs to be done on other text files as well, but that would cause undo conflicts in the jquery branch(due to .js being heavily modified there). Also, some files were committed to the repository with DOS line endings; those are fixed as well.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044202 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 02:40:02 +00:00
Adam Heath
192418385b
Several utility methods for copying streams and
...
readers/writers/appendable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040798 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:40 +00:00
Jacques Le Roux
66c5dd10a0
A patch from Dukian "Add Traditional Chinese translation for applications, ecommerce, and ofbizsetup" ( https://issues.apache.org/jira/browse/OFBIZ-4031 ) - OFBIZ-4031
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039574 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 21:56:14 +00:00
Jacques Le Roux
e7bdf3d27e
This comment is not true anymore (you can set things using POP/IMAP transfer menu option in your GMail account).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1004238 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 13:54:25 +00:00
Jacques Le Roux
ad6c8a8341
Deprecates renderTemplateFromString from Scott's remark on dev ML.
...
I also removed a wrong @Override annotation for OFBizTemplateExceptionHandler
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1004148 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 08:55:13 +00:00
Jacques Le Roux
8372d0cf87
A patch from Sascha Rodekamp "Additional parameter for FreeMarker to tell if it should load ftl files from cache or not" ( https://issues.apache.org/jira/browse/OFBIZ-3970 ) - OFBIZ-3970
...
This patch allows you to tell FreeMarker if it should load the ftl files from cache or not as extension for the method description. If you have a few screens which shouldn't use the cache you can configure them separately. The use case is loading content with templates which are stored in the DB and can be modified during the runtime (CMS).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1003943 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 10:03:14 +00:00
Hans Bakker
3a4caa0038
add role set for 'th' locale into 'Rule Base Number Format Rule Sets'
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1003459 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 09:56:20 +00:00
Ashish Vijaywargiya
58b5d276a6
Correcting the condition. Thanks Akash for the contribution.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998061 13f79535-47bb-0310-9956-ffa450edef68
2010-09-17 10:40:20 +00:00
Jacques Le Roux
ace6cf5af1
Reverts r991485 and adds a comment to avoid this in the future
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997526 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 22:19:26 +00:00
Ashish Vijaywargiya
7126bb1f03
For now reverting my commit r995384 as it was creating issues for others.
...
Very soon I will get back here with better fix, till then I will maintain patch for my own work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996122 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 11:21:42 +00:00
Ashish Vijaywargiya
4f8585623a
Fixing bug of reading node name. When we read first child element of the response of any third party integration for example ups etc, node name can't be read using "node.getLocalName()". So changing node.getLocalName() --> node.getNodeName().
...
Thanks Vivek for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995384 13f79535-47bb-0310-9956-ffa450edef68
2010-09-09 11:32:28 +00:00
Adam Heath
32fd7f2533
Add systemId to xml node location tracking; this is based on the
...
docDescription passed in, which in normal cases is the URL.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995202 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:03:18 +00:00
Jacques Le Roux
427d8fc258
A patch from Liu Xiangqian "method writeObject(StringBuilder sb, Object value, boolean allowJsonResolve) in UtilIO always throw an IOException" ( https://issues.apache.org/jira/browse/OFBIZ-3916 ) - OFBIZ-3916
...
Tried to invoke method UtilIO.writeObject() but found the following code
try {
StringWriter writer = new StringWriter();
if (encodeObject(writer, value, allowJsonResolve)) { sb.append(writer.toString()); return; }
} catch (Exception e) {
}
throw new IOException("Can't write (" + value + ")");
It caused the method to always throw an IOException.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@991485 13f79535-47bb-0310-9956-ffa450edef68
2010-09-01 09:15:14 +00:00
Erwan de Ferrieres
2b854ca29b
groovy 1.7.4 bugfix release (notes : http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10242&version=16563 )\n this time it's ok
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987905 13f79535-47bb-0310-9956-ffa450edef68
2010-08-22 13:57:31 +00:00
Erwan de Ferrieres
ef9dbea9f9
reverting previous commit, sorry, I was a bit too speed on this one
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987767 13f79535-47bb-0310-9956-ffa450edef68
2010-08-21 14:46:07 +00:00
Erwan de Ferrieres
5c4d25735d
groovy 1.7.4 bugfix release (notes : http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10242&version=16563 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987766 13f79535-47bb-0310-9956-ffa450edef68
2010-08-21 14:27:49 +00:00
Hans Bakker
2d9b75a30f
this is a revert of r731487 to downgrade freemarker from 2.3.15 to 2.3.10 because of speed problems. In order to make the older version work we changed the following:
...
- create new OfbizCatalogUrlTransform class
- delete CatalogUrlDirective.java class
- set ofbizCatalogUrl transform to OfbizCatalogUrlTransform class
- In htmlFormMacroLibrary.ftl file, change floor directive to floor method of Math class
- change freemarker version in .classpath and LICENSE files
We are in discussion with the freemarker developers to solve this problem there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@986577 13f79535-47bb-0310-9956-ffa450edef68
2010-08-18 06:33:12 +00:00
Erwan de Ferrieres
926d4ea1dd
Upgrading to Commons FileUpload 1.2.2, bug fix release from August 2010
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@985714 13f79535-47bb-0310-9956-ffa450edef68
2010-08-15 17:09:49 +00:00
Adam Heath
8a23b9998c
Missed some files in the tomcat 6.0.29 upgrade, and also updated LICENSE
...
and .classpath.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@985309 13f79535-47bb-0310-9956-ffa450edef68
2010-08-13 18:00:36 +00:00
Jacques Le Roux
b7642843fd
Fixes 2 typos in Javadoc found by chance
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@983946 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10 11:55:44 +00:00
Jacques Le Roux
b552004b9b
A patch from René Scheibe ""setShippingOption" service called from one page checkout throws Exception" ( https://issues.apache.org/jira/browse/OFBIZ-3886 ) - OFBIZ-3886
...
The shippingTotal has to be a BigDecimal for the methods called...
* org.ofbiz.base.util.UtilFormatOut.formatCurrency(...)
* org.ofbiz.order.shoppingcart.ShoppingCart.setItemShipGroupEstimate(...)
...so in case it's null, initialize it with BigDecimal.ZERO instead of 0.00
Fixes also some JavaDoc in UtilFormatOut.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@983920 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10 10:43:01 +00:00
Adam Heath
5b4e8071c5
Add appendTo/append variant that allows for a prefix and suffix around
...
the separator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981533 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:21 +00:00
Adam Heath
cb1646e320
More StringUtil tests; This also tests double-encoding detection, which
...
required changing the type of defaultWebEncoder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981532 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:15 +00:00
Adam Heath
77912ea777
StringUtil now has a private constructor; all uses of it must use the
...
singleton static INSTANCE(only one such use is in ofbiz).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981531 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:09 +00:00
Adam Heath
ce409cd671
Start adding StringUtil tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981530 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:02 +00:00