Sascha Rodekamp
17db70f01a
fixed a js bug in the lookups - worng link parsing if there's a slash '/' in the data
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1358988 13f79535-47bb-0310-9956-ffa450edef68
2012-07-09 09:13:54 +00:00
Jacques Le Roux
c10088f694
I'm used to use r for release, I put it here also
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1358847 13f79535-47bb-0310-9956-ffa450edef68
2012-07-08 21:55:06 +00:00
Jacques Le Roux
88f88ba007
A patch from Daniel Riquelme "Not getting right behavior of use-when when using in multi" https://issues.apache.org/jira/browse/OFBIZ-4932
...
The problem is that on multi forms the bshInterpreter gets pushed to higher levels on the context stack when iterating the form rows.
What is intended in the code is to reset the bshInterpreter (this.resetBshInterpreter(context) for each row iteration, this reset translates into a key object being removed from context, this context is stored in a stack data structure. The removal assumes the value will always be at level 0, yet what happens is that the value resides at a higher level.
The fix is to perform the removal prior to context modification, this way the bshInterpereter object would be at level 0 upon removal.
jleroux: since the BshInterpreter is reseted just after with localContext this should not have any bad side effects
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1358735 13f79535-47bb-0310-9956-ffa450edef68
2012-07-08 13:15:56 +00:00
Hans Bakker
df86e7f69d
update revision 1353381 to use CREATE/UPDATE?DELETE instead of ADMIN, suggestion from Jacopo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1357453 13f79535-47bb-0310-9956-ffa450edef68
2012-07-05 03:24:57 +00:00
Hans Bakker
ff9542a4eb
update revision 1352768 to use CREATE instead of ADMIN, suggestion from Jacopo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1357450 13f79535-47bb-0310-9956-ffa450edef68
2012-07-05 03:07:58 +00:00
Jacques Le Roux
e0aeb84002
At Jacopo's demand removes a link to MarkMail. I could have added a link to mail-archives.apache.org/mod_mbox/ofbiz-user but it's very minor anyway
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1357235 13f79535-47bb-0310-9956-ffa450edef68
2012-07-04 13:09:37 +00:00
Jacques Le Roux
00b4936522
Fixes a duplicated label
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1357182 13f79535-47bb-0310-9956-ffa450edef68
2012-07-04 08:57:42 +00:00
Sascha Rodekamp
c46513daa0
Lookup filed with target-parameter attribute set cannot be displayed ( https://issues.apache.org/jira/browse/OFBIZ-4950 ) A patch from Leon: if <lookup> field has attribute "target-parameter" set, then there's javascript error in front end and lookup icon disappears.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1357098 13f79535-47bb-0310-9956-ffa450edef68
2012-07-04 06:24:57 +00:00
Jacques Le Roux
6889ac074a
No functional changes, only a small comment to better understand the meaning of those fields (excerpt from http://markmail.org/message/tvyghkw7rgq5bmqi there are more things interesting in this thread, other solutions to other problems, etc.)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356882 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 19:34:44 +00:00
Adrian Crum
6d987730ef
Mini-language JavaDocs and added missing @Override directives.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356836 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 17:08:16 +00:00
Adrian Crum
f34a9f1881
Added some Mini-language unit tests. These only test the <assert> and <check-errors> elements for now. More to come later.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356762 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 14:44:13 +00:00
Adrian Crum
fc32bb4cde
Trivial, non-functional changes to SimpleMethod.java: JavaDocs, trace messages.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356761 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 14:41:57 +00:00
Adrian Crum
237abc3592
Added trace support to Mini-language <assert> and <check-errors> elements. Also fixed a bug in the <assert> element where it created an error list when there were no errors.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356759 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 14:40:12 +00:00
Adrian Crum
ba24e91346
EmptyCondition.java bug fix - fixed the toString method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356758 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 14:37:38 +00:00
Adrian Crum
df13fee9c3
SimpleMethod.java bug fix - make sure the exec method always returns a non-null result when run as a service.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356707 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 12:59:17 +00:00
Jacques Le Roux
638d9dc501
Fix an error reported by varun bhansaly on dev ML
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356688 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 12:11:34 +00:00
Jacques Le Roux
feecb15093
"Housekeeping of jar files" https://issues.apache.org/jira/browse/OFBIZ-4833
...
Moves Minerva and XAPool to Attic
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356471 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 20:29:54 +00:00
Adrian Crum
cc2d6989e5
Overhauled the Mini-language schema. The schema elements have been reorganized to match the order in the Mini-language Reference ( https://cwiki.apache.org/OFBADMIN/mini-language-reference.html ) - which makes it easier to keep the two documents in sync.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356263 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 14:36:12 +00:00
Adrian Crum
db6b939afe
Some code optimization work on Calculate.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356245 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 14:23:33 +00:00
Adrian Crum
dfb74cc196
Fixed some bugs in EntityFinderUtil.java:
...
1. LimitRange and LimitView classes treated ELI and List indexes the same - causing inconsistent results because ELI indexes are one-based and List indexes are zero-based.
2. LimitRange and LimitView classes returned different results at the end of the list depending on whether an ELI or List was being used.
3. LimitView class view index calculation was wrong.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356201 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 12:16:36 +00:00
Adrian Crum
83c60b16da
Small fixup for my previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356168 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 10:33:49 +00:00
Jacopo Cappellato
9ccc542a28
Moved "naming-container" to the base component configuration file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356087 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 07:28:55 +00:00
Jacopo Cappellato
0b16982849
Moved rmi-dispatcher container definition to the service component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356074 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 05:55:25 +00:00
Adrian Crum
523436cb76
Some optimizations in EntityFinderUtil.java:
...
1. Made the Condition implementations immutable and thread-safe.
2. Moved operator lookup from run-time to parse-time.
3. Removed unnecessary calls to UtilValidate.
4. Replaced LinkedList with ArrayList.
5. Optimized code in the ConditionExpr.createCondition method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356024 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 20:54:23 +00:00
Jacques Le Roux
d9e079b8e8
To end gracefully the files generation process we must remove System.exit(1) here.
...
Inspired by a patch from Sankp for "Incorrect argument processing while Generating container" https://issues.apache.org/jira/browse/OFBIZ-4929 at r1355974 in R11.04
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355975 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 18:30:20 +00:00
Jacopo Cappellato
b835d4f17d
Forgot to commit these mods; they should have been part of rev. 1355854
...
Thanks to Adrian Crum for the report (build was failing)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355923 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 15:07:21 +00:00
Jacques Le Roux
390a8024b0
Removes the s I added in previous commit to be consistent with most other descriptions which uses the imperative.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355901 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 13:45:09 +00:00
Adrian Crum
a03b889c32
Added testtools back to the Eclipse classpath.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355875 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 12:18:14 +00:00
Jacques Le Roux
c4ec183406
No functionall changes, just some targets comments improvements
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355863 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 08:46:59 +00:00
Jacques Le Roux
eae8348e7d
Fixes a bug reported by Krishan Babbar on user ML
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355859 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 08:23:38 +00:00
Jacopo Cappellato
ea54b4ff18
Added new getName method to the Container interface and to all the implementations; added info messages to inform when containers are started/stopped.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355854 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 07:32:07 +00:00
Jacopo Cappellato
b3a310b3df
Moved catalina container definitions to the catalina component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355853 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 06:59:37 +00:00
Jacques Le Roux
5cabbee270
A patch from Olivier Heintz "Example Help data files has not been moved to example" https://issues.apache.org/jira/browse/OFBIZ-4935
...
Example component has been moved from framework to specialpurpose.
When example was in framework content data for help was loaded in content component because example was loaded before content.
Now it's possible (and more logical) to load content help for example in example.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355807 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 20:30:16 +00:00
Jacques Le Roux
c34c6aadd5
A patch from Tom Burns for "Defects in Presentation of Role Type" https://issues.apache.org/jira/browse/OFBIZ-4947
...
Release 10.4 and SVN tunk
In Party Manager go to Profile > Roles(s)
1. Create a New Role Type
2. Click save
Expected: Screen refresh and return to Roles(s) tab on ProfileTabBar
Actual: Screen refresh ProfileTabBar missing
In SVN tunk
In Party Manager go to Profile > Roles(s)
Expected: Roles listed in screenlet Add To Main Role > Role Type Id drop-down list
Actual: Screenlet Add To Main Role > Role Type Id drop-down list is empty.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355801 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 20:12:19 +00:00
Jacques Le Roux
eb16ef1982
Fixes a bug introduced in r1355652
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355682 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 10:25:24 +00:00
Jacques Le Roux
8266a36101
"Login out on a cluster handled by DeltaManager causes a NPE" https://issues.apache.org/jira/browse/OFBIZ-4289
...
Uses a HashMap instead of a FastMap here because else we get this kind of error when OFBiz is shut down:
2012-06-12 10:35:29,921 (OFBiz_Shutdown_Hook) [ StandardSession.java:1567:WARN ] Cannot serialize session attribute LAST_VIEW_PARAMS for session 00C48D0D76821C98403482FAE8B77C24.jvm1
java.io.NotSerializableException: net.sf.json.JSONObject
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at javolution.util.FastMap.writeObject(FastMap.java:1513)
Note: to test the above you need to set apps-distributable to true and put some <distributable/> in the web.xml files of the applications to test
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355660 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 08:15:42 +00:00
Jacopo Cappellato
c386b7fc9a
Added new "name" argument to the "init" method of the Component interface: now the name of the container (set by the xml attribute container.name) is passed to the init method and it is used to retrieve the container's configuration; before of this the container's name was hardcoded preventing the ability to define (and load) two containers (with different settings) of the same type.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355652 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 06:32:00 +00:00
Jacopo Cappellato
d6b537d0cc
Fixed wrong path to data file in the scrum component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355491 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 18:16:47 +00:00
Jacopo Cappellato
f9cc630e33
Misc cleanups to the specialized *-containers.xml files: removed redundant commented out definitions (that are copy of the ones available in ofbiz-containers.xml) and removed a couple of still enabled beanshell telnet containers.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355470 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 16:55:11 +00:00
Jacopo Cappellato
068430fb8b
Moved a few container definitions from the base/config/*-containers.xml files to their own component's ofbiz-component.xml file; this is a demonstration of the usage of the new ability to define component level containers; this is still experimental and there is room for improvements (and I am working on them and going to discuss a few details in the dev list) but this should already give a good idea of how we can remove redundancy from the various *-containers.xml files, remove dependencies between framework components and make the components self deployable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355466 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 16:43:51 +00:00
Jacopo Cappellato
7b65f2dfbc
Added ability to define "loaders" for loading selectively specific containers defined in components.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355460 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 16:33:22 +00:00
Adrian Crum
4112e1e880
Mini-language <find-by-and> element improvement: add a fields-to-select-list attribute.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355348 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 12:56:33 +00:00
Adrian Crum
5d4c21feea
Minor change to Mini-language <find-by-primary-key> element - prevent unnecessary copying of field name set.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355347 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 12:54:42 +00:00
Sascha Rodekamp
d9de95aec9
Render checkbox field as same behavior as radiobox ( https://issues.apache.org/jira/browse/OFBIZ-4948 ): A patch from Leon: when rendering a radio field in form widget, the generated html codes looks like: <span><input type="radio" ...>blahblah</span>. The radio box and its description are wrapped by <span> and it's easy to change css style for both of them (radio and description), not only for radio type input. But the check box is rendered in another way without <span> around.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355291 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 09:31:22 +00:00
Jacopo Cappellato
3594858b4f
This (temporarily) reverts my last commit 1354885: I still have to figure out a few things (how to selectively enable/disable containers at startup)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354905 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 10:35:33 +00:00
Jacopo Cappellato
d5c7ad614e
Moved the "container" declaration for Birt from the base/config/ofbiz-containers.xml to the Birt's own component definition file: this change is a step in the direction of making the "birt" component self deployable (in the hot-deploy folder), in preparation for the removal of the "birt" component from the trunk.
...
This configuration is made possible by the commit rev. 1354884 and we may consider to apply it to other containers (e.g. Jetty and Catalina).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354885 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 09:43:18 +00:00
Jacopo Cappellato
50c2e0e089
It is now possible for a component to define new "containers" that are loaded after the ones defined in base/conf/*-containers.xml
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354884 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 09:31:37 +00:00
Christian Geisert
5f4d64dcfa
German translations
...
See OFBIZ-4906 (https://issues.apache.org/jira/browse/OFBIZ-4906 )
Submitted by Martin Kaiser (martin dot kaiser at gmail dot com)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354852 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 08:19:28 +00:00
Jacques Le Roux
a38b3c8aaa
A patch from Mohamed Amine AZZI for "Adds arabic resources to the Pos" https://issues.apache.org/jira/browse/OFBIZ-4945
...
Adds arabic string resources to the pos application
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354409 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 10:32:54 +00:00
Jacopo Cappellato
6ba24ed4bc
As discussed in the dev list a few months ago, this commits removes Seleniumxml from the trunk.
...
Seleniumxml was a subcomponent of the framework/testtools intended to facilitate the usage of Selenium tests in OFBiz.
However it was never upgraded to the new version of Selenium and it has not been widely adopted by the community; the OFBiz community agreed to remove components/tools like this from the core distribution if they are optional/very specific or not well maintained or if there is (as in the case of Selenium) a valid external alternative to perform the same actions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354380 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 09:19:20 +00:00