Jacques Le Roux
8d9d3f9942
Normalizes
...
* Canada GeoId for Province prefixed with CA- as it should be (following ISO 3166-2:CA, http://en.wikipedia.org/wiki/ISO_3166-2:CA )
* USA GeoId for Province prefixed with US- as it should be (following ISO 3166-2:US, http://en.wikipedia.org/wiki/ISO_3166-2:US ). I did not see any reasons to no use the same scheme for "US Armed Forces provinces"
No other countries had the same problem
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169790 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 15:11:00 +00:00
Jacques Le Roux
e497883d62
VCard.java: replaec an UtilValidate.isNotEmpty() by a simple isEmpty()
...
ShoppingCart.java: a tabs has been automatically replaced by 8 spaces, fixes it
UtilValidate.java: removes useless parentheses
GeneriDao.java: fixes a wrong UtilValidate.isNotEmpty
ModelFormField.java: revert all UtilValidate.is(Not)Empty() changes though I ddid not find an error there, it must be one because https://localhost:8443/humanres/control/EditResponsibilityTypes is not rendered correctly. I will check again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169754 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 14:13:17 +00:00
Jacques Le Roux
a7f92ce35f
Fix a bug introduced in r1169478
...
Thanks to Hans for reporting on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169701 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 11:47:15 +00:00
Jacques Le Roux
4bd75e57d8
Change artifact info label: adds a warning about duration before availability
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169479 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:29 +00:00
Jacques Le Roux
2b712efb98
No functional changes, simple code refactoring around UtilValidate.is(Not)Empty()
...
Changes implementation of UtilValidate.isEmpty() for Collection and Map by using isEmpty() instead of c.size() == 0). It's more clear and as efficient. Removes also useless parentheses there.
Makes use of UtilValidate.is(Not)Empty() everywhere it makes senses. This for 2 reasons:
* Make the code more readable by replacing the (!)null/isEmpty pattern.
* Avoid possible NPEs when only isEmpty() was used (after Entity.find... for instance). I found a lot of cases (242 today) where isEmpty() could perhaps be replaced in Framework. But I guess no NPE checks were missing there and anyway it was too much for me to check them all... So I only did the relevant changes in Applications...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169478 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:11 +00:00
Jacques Le Roux
76168a4d8a
A patch from Leon "trivial update to "convertUom" script" https://issues.apache.org/jira/browse/OFBIZ-4402
...
If we setup the custom uom conversion method which is called by convertUom service, and then invoke convertUom service, the exception raised:
Could not complete the Convert UOM values...blahblah...Unknown parameter found: [convertUomCustom.asOfDate]Unknown parameter found: [convertUomCustom.defaultDecimalScale]Unknown parameter found: [convertUomCustom.defaultRoundingMode]Unknown parameter found: [convertUomCustom.purposeEnumId].
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167480 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 09:29:28 +00:00
Adrian Crum
ed013f302b
A small refactoring of ArtifactInfoBase.java:
...
1. Fixed infinite recursion reported by Dimitri Unruh (https://issues.apache.org/jira/browse/OFBIZ-4398 ).
2. Eliminated expensive repetitive String concatenations.
3. Added hashCode() - since the class implements equals().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167117 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 11:51:13 +00:00
Hans Bakker
483299c5ec
New product type: Fixed Asset Usage For Rental of an asset which is shipped from and returned to inventory. Including Junit test and demo data. More explanation will follow in a blog on the 'what is new page'
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167015 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 06:40:28 +00:00
Sascha Rodekamp
568a9e442d
Update to jQuery validation 1.8.1
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1166288 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 18:11:01 +00:00
Adrian Crum
642c6383e5
Fix NPE I introduced in my previous commit. Reported by Chatree Srichart.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165233 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 10:47:32 +00:00
Jacques Le Roux
b01369ef25
Migration to Tomcat 6.0.33 due to a security issue in previous revisions, see http://tomcat.apache.org/download-60.cgi#6.0.33
...
I have kept tomcat-6.0.32-tomcat-juli-adapters.jar & tomcat-6.0.32-tomcat-juli.jar and renamed them to 33, did not find any issues...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165125 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 22:44:50 +00:00
Jacques Le Roux
60dc2a519a
An effort has been made in r1163575. But it needed a bit more love. I simplified by renaming to geoAssocTypeId instead of uselessly complicated stateProvncGeoAssocTypeId
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165124 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 22:33:17 +00:00
Jacques Le Roux
30b4566a7c
Revert r1165076 (at Adrian's right demand)
...
Actually I hastily did it bad using static instead of caching. Anyway, I checked there are no real needs to change current code in OFBiz for perf.: one instance is in an exception and the other not called OOTB...
Was: Closes https://issues.apache.org/jira/browse/OFBIZ-4201
"DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165084 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 19:07:16 +00:00
Adrian Crum
78106cefd6
Some minor en spelling fixes for CommonUiLabels.xml plus some en_GB additions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165081 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 18:29:03 +00:00
Jacques Le Roux
fd92b0eca1
Closes https://issues.apache.org/jira/browse/OFBIZ-4201
...
"DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance"
jlr: It's not really cache but a static class constant
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165076 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 17:08:54 +00:00
Adrian Crum
b891086624
Fixed a ModelFormField bug introduced in rev 1075322 - date and date-time form fields were throwing exceptions because the description Strings were HTML encoded before being converted to other types. I moved the HTML encoding to post-conversion.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165011 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 13:26:57 +00:00
Adrian Crum
fb9ae9ffb5
Added some Calendar<->Date data type converters. Commit includes some unintended code formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164906 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 18:36:39 +00:00
Adrian Crum
aa531f10af
Improved mini-language <set> operation: now supports groovy: syntax in the from-field attribute.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164712 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 20:55:15 +00:00
Hans Bakker
1ce4f86892
change the component template to use the application decorator
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163944 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 08:45:39 +00:00
Sascha Rodekamp
074a2498f3
Fix the CountryAddressFormat relation to make the StateDropDown fields work again. The field-name and rel-field name were twisted.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163575 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 11:20:16 +00:00
Sascha Rodekamp
28eff53625
Update to the current jQuery Version 1.6.2
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163547 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 09:26:56 +00:00
Sascha Rodekamp
d6c19a4ac8
A patch from Leon to get the correct "jquery.ui.datepicker-xx-XX.js" ( https://issues.apache.org/jira/browse/OFBIZ-4377 )
...
It uses "locale" (e.g. zh_TW) to form the jquery.ui.datepicker file name in method JsLanguageFileMappingCreator.createJsLanguageFileMapping, but jquery uses dash ("-") instead of underscore ("_") to concat the language code and country code, such as zh-TW vs. zh_TW.
A very trivial update to JsLanguageFileMappingCreator.java, and after that, update the JsLanguageFileMapping.java file by running service "createJsLanguageFileMapping". In attached, contains both of patches to these two files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163533 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 08:57:29 +00:00
Jacques Le Roux
9cc20de930
Remove MEXCAN from US geo data file
...
Forgot to save before committing r1163475
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163479 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 03:36:06 +00:00
Jacques Le Roux
0aed887dbd
Splits USA , Mexico and Canada geo data. I let USCAN and USMEXCAN in US file, I put MEXCAN in MX file
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163475 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 03:02:24 +00:00
Jacques Le Roux
6891cdeeea
A patch from Leon "improve the behavior of nested lookup dialogs (ajax mode) " https://issues.apache.org/jira/browse/OFBIZ-4380
...
Nested lookup dialogs: in one lookup dialog, it opens another lookup dialog.
trivial improvements:
1. "enter" event only occurs to lookup dialog itself
2. if mouse click out side the lookup dialog, only current activated dialog closes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163093 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 05:56:52 +00:00
Hans Bakker
2a61998b2d
junit tests to test the change in r1163083 to have invoicing per order/or shipment. Also added spring jar files to be able to test ofbiz events.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163084 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 04:25:28 +00:00
Adrian Crum
14cc4128e2
XML formatting and some documentation for geo-related entities. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1162940 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 18:38:57 +00:00
Adrian Crum
22273d5391
Fixed some problems with geo data, patch contributed by Deepak Dixit ( https://issues.apache.org/jira/browse/OFBIZ-4371 ).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1162693 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 09:26:52 +00:00
Hans Bakker
426d814c0c
allow the listing of all preference groups in the partymanager user preferences
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1162312 13f79535-47bb-0310-9956-ffa450edef68
2011-08-27 08:21:01 +00:00
Hans Bakker
9b17664d42
add the viewsize and viewindex parameters to the buttons on a list form to remember the paage and pagesize automatically
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1160539 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 04:26:06 +00:00
Scott Gray
d54894f913
Just realized I missed sending the error message list along to the service. (It pays to review your own commits)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1159971 13f79535-47bb-0310-9956-ffa450edef68
2011-08-21 12:09:47 +00:00
Scott Gray
de7bf9ddf9
Replace code with a call to ModelService.makeValid(...) which does the same thing
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1159969 13f79535-47bb-0310-9956-ffa450edef68
2011-08-21 12:03:43 +00:00
Jacques Le Roux
1d99d76019
Dummy service to prevent empty files and syntax error - To be removes when the 1st real service will be added there
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1159080 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 08:25:35 +00:00
Hans Bakker
0a59303a34
remove the rest of the website definitions from seed data, the ones that are left are in the demo data
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1158099 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 03:43:06 +00:00
Hans Bakker
d29adab86a
add http/htttps to the request log message
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1154846 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:46:37 +00:00
Ashish Vijaywargiya
e7b7b6168e
Applied patch from jira issue - OFBIZ-4355. Update simple-methods.xsd (Missing "not-in" operator in condtion-expr tag).
...
Thanks Amit for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1154470 13f79535-47bb-0310-9956-ffa450edef68
2011-08-06 09:32:23 +00:00
Adrian Crum
dfb1eac36f
Fixed a screen widget bug where non-existent hyperlink parameter values were rendered as "null" - https://issues.apache.org/jira/browse/OFBIZ-4358 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1153752 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 04:51:19 +00:00
Jacques Le Roux
0fe66fb067
http://jakarta.apache.org/regexp/ is now deprecated in favor of java.util.regexp. I don't see any use of org.apache.regexp in OFBiz code OOTB, so removing
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1153682 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 21:44:52 +00:00
Sascha Rodekamp
8ea4b86713
Improvement: OFBIZ-4270 - State dropdown only finds states and does not include county information
...
Reorganized and extend the Data structure, now it is possible to store additional country postal code regex data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1153402 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 09:12:31 +00:00
Hans Bakker
53de1508c4
improve the alternative seo friendly content url: some url's where not recognized
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1153366 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 07:12:29 +00:00
Jacques Le Roux
458fc97948
Update the comment about default VisualTheme
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1153069 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 08:55:03 +00:00
Adrian Crum
752b4b5b8a
Downgraded iCal4j jar file to ver 1 RC2 because ver 1 RC3 and greater is throwing exceptions. I will look into this more later.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1151623 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 20:56:10 +00:00
Hans Bakker
154d6c534b
improved implementation of rev 1150271: only add contenturl prefix to javascript includes which do not start with http. Suggestion from Scott G.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1151030 13f79535-47bb-0310-9956-ffa450edef68
2011-07-26 09:06:31 +00:00
Hans Bakker
bc8d33eec0
xml format error corrected
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1148129 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 02:41:24 +00:00
Erwan de Ferrieres
968819599e
Forgot modification in HtmlFormRenderer.java at rev 1145293 when using a time-dropdown
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1148033 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 20:07:25 +00:00
Erwan de Ferrieres
82124fd25f
Changing the labels for entry date format in French
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1148023 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 19:50:54 +00:00
Jacques Le Roux
eec5799ce9
A patch from BJ Freeman "update tree widget xsd" https://issues.apache.org/jira/browse/OFBIZ-4329
...
The example were out of date and there are plenty of examples in code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1147410 13f79535-47bb-0310-9956-ffa450edef68
2011-07-16 11:54:58 +00:00
Hans Bakker
12b2e145c8
https://issues.apache.org/jira/browse/OFBIZ-4337 : HttpClient does not support UTF-8 Patch By Chatree with comments from Adrian and Scott
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1145854 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 04:10:25 +00:00
Erwan de Ferrieres
a5a3c1983f
Using the type time for a field, when input-method=time-dropdown doesn't remove the date fields. Now, only hours and minutes are visible.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1145293 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 18:58:26 +00:00
Jacques Le Roux
18434fafea
Better comment on the cluster properties usage
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1144791 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 08:58:13 +00:00