Commit Graph
21879 Commits
Author SHA1 Message Date
Adrian Crum 79ecbea037 Bug fix: add missing attribute to ofbiz-properties.xsd.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649668 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:39:46 +00:00
Adrian Crum 91feff5f51 Updated the UI label files so they reference a schema.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649666 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:24:18 +00:00
Adrian Crum 40e1ee8490 Oops, forgot a file in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649621 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 19:24:07 +00:00
Adrian Crum 9d83f49c45 New Feature: EntityClassLoader. This should be a better solution than the current EntityProperties implementation. Includes example usage in ControlServlet.java (commented out for now).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649620 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 19:22:56 +00:00
Adrian Crum 66adcd9de2 Fix Web Tools FindGeneric screen so it can display byte-array field types.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649615 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 19:15:24 +00:00
Adrian Crum 0f18840dd3 Fixed a bug in the entity engine that prevented data loading into a byte-array field type.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649614 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 19:06:41 +00:00
Ashish Vijaywargiya b068b9ce52 Applied patch from jira issue - OFBIZ-5364 - Incorrect quantityNotAvailable for OrderItemShipGrpInvRes when issuing items to shipments.
Thanks Christian for creating the issue. Thanks Swapnil providing additional details and Divesh for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649405 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 20:19:01 +00:00
Ashish Vijaywargiya 44d1bbb9bc Applied patch from jira issue - OFBIZ-5925 - Pack order flow is broken.
Thanks Deepak for creating the issue and thanks Divesh for the patch. Thanks Jacopo!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649396 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 20:03:19 +00:00
Ashish Vijaywargiya cbbdc011d3 Applied patch from jira issue - OFBIZ-3464 - Added check if the creditcard number string is numeric in validation method isCreditcard in UtilValidate.
Thanks Nils for creating the issue and providing the patch for the same. Thanks Divesh for your help in verification. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649393 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 19:53:29 +00:00
Adrian Crum d2375c12d0 Fix a C&P error in ModelMenuItem.java - https://issues.apache.org/jira/browse/OFBIZ-5943
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649384 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 19:02:29 +00:00
Adrian Crum 0b3a5ef360 JavaDocs for widget actions, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649331 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 13:41:03 +00:00
Adrian Crum 6db50a5b0a Update tree widget schemas & models to reuse shared actions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649329 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 13:39:35 +00:00
Adrian Crum 31135b6076 Update widget schemas to reuse shared actions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649291 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 04:51:08 +00:00
Adrian Crum 1f4c7e268f ModelMenuAction.java thread safety.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649286 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 03:17:28 +00:00
Adrian Crum d2ca9a7a0c Remove unused widget class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649285 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 03:16:39 +00:00
Adrian Crum f2190af53e Refactor ModelFormAction.java to reuse common widget action models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649283 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 03:07:40 +00:00
Adrian Crum d3c7dbb53e Code cleanup and thread safety in ModelWidgetAction.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649281 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 02:41:56 +00:00
Adrian Crum 73cc6c2cbf ModelWidgetAction.java code formatting, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649280 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 01:40:36 +00:00
Adrian Crum 88a71146d1 Tree widget documentation, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649275 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 00:12:24 +00:00
Adrian Crum 9cbe119625 Final pass at making tree widget thread-safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649272 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 00:02:04 +00:00
Adrian Crum 2f920b837c Renamed ModelWidgetAction factory method to newInstance - which better describes what it does.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649248 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 21:00:04 +00:00
Adrian Crum 9db32ed762 Fixed a bug in tree rendering - https://issues.apache.org/jira/browse/OFBIZ-5313
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649239 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 19:52:21 +00:00
Adrian Crum 34fcdd98b7 Small code cleanup in MacroTreeRenderer.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649238 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 19:50:42 +00:00
Adrian Crum 9344bbcc2f Second pass at making tree widget thread-safe. This is a WIP.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649230 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 18:40:39 +00:00
Adrian Crum 888b7c08cc Fix for rev 1649090. In that rev I removed the hard-coded Content default entity, but that broke trees that didn't specify Content as their default entity. This commit specifies the Content entity in the Content tree definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649222 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 17:30:50 +00:00
Adrian Crum 98b1b64741 First pass at making tree widget thread-safe. This is a WIP.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649096 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 19:26:30 +00:00
Adrian Crum e46c5a3bc5 Tree widget - remove stored references to Delegator and LocalDispatcher.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649090 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 18:55:48 +00:00
Adrian Crum c8604d941a Code formatting in ModelTree.java, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649086 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 18:11:11 +00:00
Adrian Crum ee0093ae71 Refactor tree widget to reuse common condition models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649084 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 17:52:29 +00:00
Adrian Crum 18cf8f749a Reverting rev 1646969 because it breaks tree rendering.
I need this fixed so I can begin working on tree widget refactoring. During refactoring I will most likely solve the problem rev 1646969 was trying to fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649083 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 17:49:49 +00:00
Adrian Crum 55761dfeb3 Rewrite ModelMenuItem.java to make it thread-safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649072 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 16:12:09 +00:00
Jacopo Cappellato 9ce782f90b Removed a bunch of dependencies of Owasp Esapi classes after I realized (by studying the Esapi source files and the integration in OFBiz) that we were using a small part of that product; this made it possible to upgrade to the latest release of Owasp Esapi (2.1.0) without having to include a bunch of jars.
I had to comment out two lines in the unit tests because they were failing after the upgrade; still investigating on this.
This commit resolves OFBIZ-5343.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648747 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 17:31:16 +00:00
Jacques Le Roux 2739265d35 A slightly modified patch from Divesh Dutta for "The <delete> action in <entity-engine-xml> definitions throw an error in tests" https://issues.apache.org/jira/browse/OFBIZ-5906
Data loading for xml data was working fine when <delete>,<create>, <create-update> tag were used . But these tags were not working when data was loaded at the time of running J-unit tests. So after researched that how data loading was working fine for simple data load. So I used the same way than in EntityDataLoader.java to parse the XML file. 

jleroux: I simply removed the old code Divesh commented out in his patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648668 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 10:01:56 +00:00
Jacopo Cappellato a5879b6f8f Moved code dependent on OWASP ESAPI and utilities for codec tasks from StringUtil to a new UtilCodec class: now the UtilCodec class is the only class dependent on OWASP ESAPI.
The DefaultEncoder from OWASP ESAPI, used internally by UtilCodec is now built with the default constructor that also adds the JavascriptCodec to the list of codecs used to canonicalize and validate the input.
Renamed the UrlEncoder class to UrlCodec in order to better describe its behavior.
Misc minor cleanups.
Added to the list of tests of the base component a series of Junit test classes that were missing.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648403 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 18:24:57 +00:00
Jacopo Cappellato b969e376ed A series of cleanup to the integration with OWASP ESAPI. Isolated dependencies on the external OWASP ESAPI jar into the StringUtil class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648298 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 09:24:46 +00:00
Hans Bakker debf19025c wrong default map name causing field conflict error, fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648286 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 03:08:27 +00:00
Adrian Crum dfb9f37a1f Refactor menu widget to reuse common condition models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648153 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 08:13:28 +00:00
Adrian Crum 51f7152723 Extract screen widget condition models to a separate class so they can be reused in other widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648152 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 07:37:03 +00:00
Adrian Crum 1fc589d681 Some fixups for the Form widget refactor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648142 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 02:22:06 +00:00
Adrian Crum 5f231ec005 Fixed a NPE I introduced in rev 1647606. Reported by Pierre Smits on dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648139 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 00:58:44 +00:00
Adrian Crum cd3ed9f83d Begin work on ModelMenu.java thread safety.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648093 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 19:18:12 +00:00
Nicolas Malin ad65c5f333 add test on server ensurePartyRole, related to the issue OFBIZ-5853
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648017 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 20:42:33 +00:00
Adrian Crum e5fcf293ae Merged revision(s) 1635411 from ofbiz/branches/boostrap_theme:
MacroScreenViewHandler.java improvement: get macro library locations from Visual Theme resources. Themes can create their own HTML now.

resourceTypeEnumId=VT_SCRN_MACRO_LIB - screen macro library location
resourceTypeEnumId=VT_FORM_MACRO_LIB - form macro library location
resourceTypeEnumId=VT_TREE_MACRO_LIB - tree macro library location
resourceTypeEnumId=VT_MENU_MACRO_LIB - menu macro library location


Merged revision(s) 1635465 from ofbiz/branches/boostrap_theme:
Fix ClassCastException.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648013 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 19:06:30 +00:00
Ashish Vijaywargiya bb98fc4e7e Applied patch from jira issue - OFBIZ-5385 - Purchase order immutable/unchangeable errors when adding variant products.
In this changes Arun has taken care of cloning related concern raised by Adrian. Thanks Arun for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647946 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 09:45:01 +00:00
Ashish Vijaywargiya d267053dc7 Applied two patch files from jira issue - OFBIZ-5893 - Use EntityQuery Builder methods in goovy files by replacing Entity Engine methods. Thanks Arun for your recent contribution where you have included changes from specialpurpose and product component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647937 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 06:54:50 +00:00
Adrian Crum 124b003d0d Rewrite ModelFormField.java and related classes. Most of this is thread-safe now. Implemented a builder design because the original ModelForm design makes several passes over the fields - modifying them incrementally. Now ModelForm modifies builders instead, then when the parsing process is complete, the builders create the thread-safe field models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647936 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 06:47:13 +00:00
Ashish Vijaywargiya f0d8ad47fd Applied patch from jira issue OFBIZ-5893 - Use EntityQuery Builder methods in goovy files by replacing Entity Engine methods.
Fixing Typo, And also adding missing import statement. Thanks Arun for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647935 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 06:43:25 +00:00
Adrian Crum 9be5ed5e06 UtilMisc.java improvements:
1. Replace DCL code with lazy-initializer class.
2. Small code cleanup.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647873 13f79535-47bb-0310-9956-ffa450edef68
2014-12-25 05:41:13 +00:00
Adrian Crum fc86aee024 UtilProperties.java improvements:
1. Replace DCL code with lazy-initializer class.
2. Remove class name from static method calls.
3. Remove some @Deprecated annotations.

When they were written, the deprecated methods simulated forthcoming Java 6 functionality - with the intent that they would be replaced with Java 6 equivalents, but the Java 6 functionality behaves differently than the deprecated methods. So, replacing the deprecated methods with Java 6 equivalents would cause undesired behavior.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647866 13f79535-47bb-0310-9956-ffa450edef68
2014-12-25 00:45:18 +00:00
Adrian Crum 06b7bcbb8b UtilDateTime.java improvements:
1. Replace DCL code with lazy-initializer class.
2. Remove class name from static method calls.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647861 13f79535-47bb-0310-9956-ffa450edef68
2014-12-24 23:37:06 +00:00