Commit Graph
211 Commits
Author SHA1 Message Date
Erwan de Ferrieres 6d59cc8f25 reverting 989475 as it is generating too much backward compatibility issues
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@989772 13f79535-47bb-0310-9956-ffa450edef68
2010-08-26 15:41:49 +00:00
Erwan de Ferrieres d6564a8188 when using an entity-condition, the object's attribute name used in condition object parameter was not taken into account
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@989475 13f79535-47bb-0310-9956-ffa450edef68
2010-08-26 07:07:12 +00:00
Adrian Crum ba90a21a73 Log element in mini-language now prints source file line number.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980657 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 06:26:35 +00:00
Jacques Le Roux 595c88d634 A patch from Shubham Dubey "Using number value with calcop operator does not work as thought" (https://issues.apache.org/jira/browse/OFBIZ-3821) - OFBIZ-3821
For instance if you use

<calcop operator="multiply" field="parameters.numberSpecified">
    <number value="${uomConversion.conversionFactor}"/>

and have a value > 1000 in conversionFactor you will get 1,000 for number value. It works well if you replace by

<calcop operator="multiply">
    <calcop operator="get" field="parameters.numberSpecified"/>
    <calcop operator="get" field="uomConversion.conversionFactor"/>

The problem exists in trunk and certainly R10.04 (not tested) maybe in previous release though I don't think so, it looks like something introduced with UEL



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@955568 13f79535-47bb-0310-9956-ffa450edef68
2010-06-17 12:26:16 +00:00
Jacques Le Roux eddce15982 A patch from Willem Janssen "Dutch labels patch" (https://issues.apache.org/jira/browse/OFBIZ-3800) - OFBIZ-3800
Adds Dutch translations in various UiLabel files, thanks to Vikas Raikwar for reviewing and checking

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@951124 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 19:24:26 +00:00
Scott Gray 839e98de6a Fix problem where inlined simple map processors weren't being given the locale correctly, reported by Saad Hage on the user list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939966 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 10:07:41 +00:00
Andrew Zeneski d78152f6c8 implemented <script> tag in minilang that works exactly the same way as the screen widget version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934510 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 18:32:35 +00:00
Scott Gray 6109808c8a Tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:28:01 +00:00
Adam Heath 6122265c29 s/ServiceRegistry/ServiceLoader/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921085 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 19:52:50 +00:00
Bilgin Ismet Ibryam 7479c4d912 Don't return the default message "The action was performed successfully" when call-service element is used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917467 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 11:16:25 +00:00
Scott Gray 8fb9b48c66 Added entity-count documentation regarding the java type of the value returned.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911517 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 18:40:47 +00:00
Adrian Crum cddeb581b9 Partially revert my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904971 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 04:00:57 +00:00
Adrian Crum 988097907e Based on advice from Adam Heath, made FlexibleMapAccessor and UelUtil methods syntactically correct. Methods that read Maps take read-only Map arguments, and methods that write Maps take writable Map arguments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904962 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 03:24:58 +00:00
David E. Jones dd572e0d75 Change based on recent dev list discussion so that break-on-error acts more like an ignore error type of thing; when combined with require-new-transaction=true this will effectively result in no issues from the called service bubbling up to the calling service; with this change manually clearing out the error message and response code is no longer necessary
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903567 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 08:48:55 +00:00
Scott Gray ed3cfedd24 Fix bug reported by Mridul Pathak, the minilang iterate tag was unable to iterate over a Set
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901880 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 22:02:14 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Jacopo Cappellato 8c8cc267a6 Based on feedback from Adam Heath and Adrian Crum, the loop operation now breaks the execution of the method if the count variable is negative.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899689 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 16:33:51 +00:00
Jacopo Cappellato aabb21bb83 Based on suggestion by Adam Heath, the warning message is logged only if the count is negative; if the count is zero the next for loop will be skipped and the method will return true as well, but without warning message.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899557 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 08:14:39 +00:00
Jacopo Cappellato 7b0ce29fc8 Looping on a variable/counter with initial value 0 was causing the simple method to stop and return.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899116 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 08:46:04 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath 56dac0bf9e Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Scott Gray e1cbfb28ed Added the ability to include all tests from a given simple method document in a test suite by only specifying the location and not the method name. All simple methods with a method name beginning with "test" will be included and will be executed in the order present in the document. Example usage:
<test-case case-name="auto-accounting-transaction-tests">
        <simple-method-test location="component://accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml"/>
    </test-case>
Basically just mimics the behavior of the junit-test-suite tag but for simple method tests

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893662 13f79535-47bb-0310-9956-ffa450edef68
2009-12-24 00:40:19 +00:00
Marco Risaliti 70200c8a4f Internazionalization of an error messages of MiniLang (OFBIZ-3360)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891929 13f79535-47bb-0310-9956-ffa450edef68
2009-12-17 21:41:00 +00:00
Jacques Le Roux 47c9613346 Some easy documentation (cwiki) links changes following r888510
I have found a way to fix tinylinks :D http://confluence.atlassian.com/pages/viewpage.action?pageId=162988142

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888559 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 20:23:23 +00:00
Jacques Le Roux 2777b83223 Fix r885091 where isNotEmpty has been used by error instead of isEmpty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885092 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 13:59:45 +00:00
Jacques Le Roux 5d4b9b5982 More uses of isEmpty(expr) instead of (expr == null) || (expr.size() == 0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885091 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 13:31:52 +00:00
Jacques Le Roux c72b29cb1f Use UtilValidate.isNotEmpty methods instead of (obj != null) || (obj.length > 0) and (obj != null) || (obj.size > 0)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883549 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 23:41:34 +00:00
Jacques Le Roux e839974fe7 Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.length == 0)
Complete r883507


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883508 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 21:48:18 +00:00
Jacques Le Roux 4e0d303e06 Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.length == 0)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883507 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 21:42:18 +00:00
Adam Heath 820d11eb97 Deprecate UtilCache constructors, and add a create helper function.
This is the first step to making utilCacheTable concurrent, and
non-blocking.  To do so, the constructor has to have no side-effects.
This means it can't modify utilCacheTable itself; this will be moved to
the helper function created above.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883217 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 02:56:28 +00:00
Jacques Le Roux c6f42723e5 A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - minilang" (https://issues.apache.org/jira/browse/OFBIZ-3115) - OFBIZ-3115
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833092 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 17:30:46 +00:00
Scott Gray aa6d7bcd67 Catch ClassCastExceptions in <store-value/> operations, these will occur if you have a null GenericValue (perhaps from a lookup that returned no results), set some fields on it and then try to store it. What you actually have at that point is a FastMap created when you set the fields.
Also added use of the utility MethodContext.setErrorReturn(String, SimpleMethod) rather than manually adding errors to the environment context.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826322 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 00:34:29 +00:00
Adrian Crum 9ee18d37c5 Updated client code to use the new Delegator factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823633 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 17:44:24 +00:00
Jacques Le Roux 592440841b No functional changes only in documentation : replace some value-name per value-field plus remove some wrong dashes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822659 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 10:54:11 +00:00
Adrian Crum 7fa08f9079 Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00
Adrian Crum a4d68934c9 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Adam Heath 5af665e7a4 Based on OFBIZ-891, allow Iterate to handle java.util.Iterator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815936 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 19:33:44 +00:00
Adam Heath a88ea227a9 Protect closing of the EntityListIterator inside a finally block.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814251 13f79535-47bb-0310-9956-ffa450edef68
2009-09-12 23:23:49 +00:00
Adrian Crum 74ea95889c Reverted rev 802567.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812692 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:56:14 +00:00
Adam Heath 0d2943ef0e Fix a generics warning.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812319 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 02:00:55 +00:00
Hans Bakker e0ba7104ce create a 'set' of documents: a technical and a user guide and added more info
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812021 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 07:31:11 +00:00
Jacques Le Roux 7befd1d25e no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
Jacques Le Roux 30e61ba8f8 Same error than in r763199 (and I knew that, sorry)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804896 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 08:23:25 +00:00
Jacques Le Roux 4c442ee379 Some fusiness
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804895 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 08:20:38 +00:00
Adrian Crum 6786aa4dbc Refactored GenericDelegator:
1. Converted GenericDelegator to an interface. We already have DelegatorInterface, but it isn't being used anywhere. Removed DelegatorInterface.java.

2. Extracted the static, cached data from the GenericDelegator implementation and put it in its own class - DelegatorData. The GenericDelegator implementation holds a reference to the DelegatorData instance. This makes it possible to have per-thread instances of GenericDelegator.

3. Replaced the ThreadLocal variables with regular variables. ThreadLocal variables are no longer needed. Client code doesn't need to be concerned with pushing and popping the GenericDelegator state.

This commit paves the way for the forthcoming ExecutionContext.

User modifications will have to replace GenericDelegator.getGenericDelegator(...) with DelegatorFactory.getGenericDelegator(...). Also, replace the push code with the new setXxx methods, and remove the pop code. If modifications used DelegatorInterface, replace that with GenericDelegator.

Aside from those changes, this commit is backwards compatible.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:04:26 +00:00
Adrian Crum e4ee374a66 Conversion from java.util.Calendar to com.ibm.icu.util.Calendar. I didn't convert the Cloud component - I wasn't sure if the Calendar class was being passed through SOAP.
OFBiz users who have modifications or add-ons can make the same substitution to get them to compile.

I'll let the dust settle from this, then I'll add the user-selected calendar capability.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792987 13f79535-47bb-0310-9956-ffa450edef68
2009-07-10 15:39:21 +00:00
David E. Jones 497a7cbf0d Change to handling of error messages in simple-methods called as a service to pass errors through in List/Map and not combine into one big String, add text you can't change, etc; now logs details and passes errors as-is
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792633 13f79535-47bb-0310-9956-ffa450edef68
2009-07-09 18:51:00 +00:00
David E. Jones 49e725e73e Fixed issue discovered and fixed and reported by Ian Tabangay, thanks Ian
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792422 13f79535-47bb-0310-9956-ffa450edef68
2009-07-09 06:50:23 +00:00