Commit Graph
18960 Commits
Author SHA1 Message Date
Jacques Le Roux bcb39b0cd7 Adds a French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340849 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 21:40:50 +00:00
Jacques Le Roux a05d0f3f7d Fixes some wrong French accents found while working on OFBIZ-3913
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340845 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 21:31:36 +00:00
Jacques Le Roux ab865939f0 A patch from Daniel Riquelme "ignore-if-empty in entity-options throw NPE when env-name is in fact empty" https://issues.apache.org/jira/browse/OFBIZ-4843
When specifying the ignore-if-empty attribute inside an entity-constraint in an entity-options a NPE will be thrown whenever the env-name of this entity-constraint is empty.

The error occurs because a null condition is created for the entity-constraint.
When validateSql get called in

org.ofbiz.entity.condition.EntityJoinOperator.validateSql(EntityJoinOperator.java:178)

there is no null checking so when

condition.checkCondition(modelEntity);

gets called an NPE is thrown.

The patch modifies the code in

framework/widget/src/org/ofbiz/widget/form/ModelFormField.java

to avoid the inclusion of a null condition to the entity-options.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340826 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 20:27:23 +00:00
Jacques Le Roux 4395b7967d A patch from Daniel Riquelme "sessionAttributes doesn't work from screen widget" https://issues.apache.org/jira/browse/OFBIZ-4669
Reported by Kiran:
In the screen widget, add a set action that refers to sessionAttributes, it doesn't work.

e.g: Following doesn't work:
<set field="titleProperty" value="${sessionAttributes.autoName}"/>

Following works:
<set field="titleProperty" from-field="autoName" from-scope="user"/>



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340821 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 20:21:06 +00:00
Jacques Le Roux 2c6ad14046 Closes "Improve site-conf.xsd" https://issues.apache.org/jira/browse/OFBIZ-4874
I always wondered why the controller syntax was poorly documented. I tried to improve that...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340774 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 17:36:26 +00:00
Jacques Le Roux 26c3dd618e A patch from Harsha Chadhar for "Can not add "Question Options" within the Survey section of the Content application." https://issues.apache.org/jira/browse/OFBIZ-4879
For a Survey Question of Type= Selected option, while trying to edit a survey question option the following error is encountered :
In set-pk-fields a value was not found with the specified valueAcsr: lookupKeyValue, not setting fields
URL : https://demo-trunk.ofbiz.apache.org:8443/content/control/EditSurveyQuestions?surveyId=1501
Screenlet:
Survey Options .

jleroux: this screen is not much user friendly (for instance when you edit the survey question option you are not redirected to the screenlet anchor)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340661 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 10:20:59 +00:00
Jacques Le Roux 0819d43345 A patch from Harsha Chadhar for "Remove Survey Question Option not working." https://issues.apache.org/jira/browse/OFBIZ-4878
On trying to delete/remove Survey Question Options for Survey Question Type= Selected Option, the following error is occurred :
Url : https://demo-trunk.ofbiz.apache.org:8443/content/control/removeSurveyQuestionAppl?surveyId=1501&surveyQuestionId=10000&surveyOptionSeqId=00001

Error calling event: org.ofbiz.webapp.event.EventHandlerException: Found URL parameter [surveyId] passed to secure (https) request-map with uri [removeSurveyQuestionAppl] with an event that calls service [deleteSurveyQuestionAppl]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. Moreover it would be kind if you could create a Jira sub-task of https://issues.apache.org/jira/browse/OFBIZ-2330 (check before if a sub-task for this error does not exist). If you are not sure how to create a Jira issue please have a look before at http://cwiki.apache.org/confluence/x/JIB2 Thank you in advance for your help.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340657 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 10:13:22 +00:00
Adrian Crum c6dec75e60 Overhauled Mini-language <entity-count> and <entity-data> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340651 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 09:48:06 +00:00
Adrian Crum dacad3baac Minor change to MiniLangElement.java - hide static module field from subclasses.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340648 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 09:25:37 +00:00
Jacques Le Roux f7f65bbc70 Removes from .classpath and LICENSE files
* ant-trax-1.8.0.jar 
* Tidy.jar (not the one with Birt, will be moved to Attic with Birt later)
* commons-vfs-20070730.jar 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340641 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 08:39:17 +00:00
Jacques Le Roux 69a54d528a Hastily removed at r1340414, needed by macros.xml (taskdefs javacc & jjtree)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340638 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 08:33:05 +00:00
Jacopo Cappellato 748dd94841 Removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340637 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 08:21:18 +00:00
Jacopo Cappellato 79ae52492a Refactored code to use the default BeansWrapper defined by FreemarkerWorker; this is important according to comment from one of the Freemarker committers:
"As of creating new BeansWrapper, be sure you create it only once during the application life-cycle and then reuse the same instance, or else it will have to rebuild the class introspection cache again and again."

Thanks to Adam Heath for the comment.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340631 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 07:49:45 +00:00
Jacques Le Roux 8390a87e00 javacc.jar is needed by the building process, I wrongly removed it at r1340414
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340485 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 14:14:10 +00:00
Adrian Crum 03d7a2c2d4 Overhauled Mini-language <entity-and> and <entity-condition> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340465 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 13:08:17 +00:00
Jacques Le Roux 137fed08aa A patch from Ankit Jain "Split Into Multiple Shipment Button is not working in Order Manager quick checkout" https://issues.apache.org/jira/browse/OFBIZ-4866
Split Into Multiple Shipment Button is not working on quick checkout page


jleroux: part the current known issue with Freemarker and findByAnd(), it works well on both sides (Order Manager and eCommerce)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340415 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 11:13:38 +00:00
Jacques Le Roux e1183b6d16 Following https://issues.apache.org/jira/browse/OFBIZ-4833?focusedCommentId=13275249&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13275249
Moves to Attic:
    framework/base/lib/ant/ant-nodeps-1.8.1.jar => can be removed IMO. It was added with ant 1.8 by Hans, not sure why (no comment about need), seems to contains no needed stuff
    framework/base/lib/javacc can be removed IMO. The Java Compiler Compiler tm (JavaCC tm) - The Java Parser Generator, not used OOTB, was added by Marco, not sure why (no comment about need)
    framework/base/lib/Tidy.jar was used at bottom of eCommerce pages before, no longer needed
    framework/base/lib/ant-trax-1.8.0.jar can be removed IMO. It was added with ant 1.8 by Hans, not sure why (no comment about need), contains XSLT task
    framework/base/lib/commons/commons-vfs-20070730.jar certainly added with Webslinger can be removed now


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340414 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:57:40 +00:00
Adrian Crum 7ce76dd6a8 Overhauled Mini-language <clear-cache-line>, <clear-entity-caches>, <clone-value>, and <create-value> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340408 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:24:42 +00:00
Jacques Le Roux 8b08aab3ef A patch from Leon for "webtools doesn't treat "Date" field properly" https://issues.apache.org/jira/browse/OFBIZ-4847
If an entity field type is "Date" (YYYY-MM-DD), in edit or create form of webtools, the component of this field is redered as "timestamp".

Update the ViewGeneric.ftl to change the related "shortDateInput" from false to true resolves this problem. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340405 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:17:23 +00:00
Jacques Le Roux e6cbafd4de A patch from Sebastian Leitner for "Possible Freemarker error in ordershippinginfo.ftl" https://issues.apache.org/jira/browse/OFBIZ-4881
If the shipgroup does not have a carrierPartyId (which is the case, if an order does not need shipping and its shipping method is NA), there is an FTL-error.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340400 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:05:33 +00:00
Jacques Le Roux e05dc542da Small formatting for previous commit (r1340398)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340399 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:03:28 +00:00
Jacques Le Roux 12d091748c A patch from Markus M. May "ew ant target run-test-debug" https://issues.apache.org/jira/browse/OFBIZ-4887
A new target run-test-debug in the build.xml provides debug functionality for specific tests.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340398 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:01:03 +00:00
Jacques Le Roux 5e1557183e Adrian suggested to removes all left-text-style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340391 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:42:20 +00:00
Jacques Le Roux 00a8e18252 Adrian suggested to removes all link-style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340390 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:40:48 +00:00
Jacques Le Roux b4cc50a2ac Adrian suggested to removes all style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340389 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:39:47 +00:00
Jacques Le Roux 608b923cfd Adrian suggested to removes all default-widget-style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340388 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:38:25 +00:00
Jacques Le Roux 3e7b774156 Adrian suggested to removes all default-tooltip-style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340387 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:37:35 +00:00
Jacques Le Roux 87d84ea506 Adrian suggested to removes all class="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340386 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:35:12 +00:00
Jacques Le Roux 9ee7384202 Adrian suggested to removes all widget-style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340385 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:32:48 +00:00
Jacques Le Roux d6619f3b5e Replaces title="${uiLabelMap.CommonEmptyHeader}" by title=" " where it's known to not be a problem. Here with links styled by widget-style="linktext"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340376 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 08:50:49 +00:00
Jacques Le Roux 028b8497d8 Replaces title="${uiLabelMap.CommonEmptyHeader}" by title=" " where it's known to not be a problem. Here with links styled by widget-style="smallSubmit"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340374 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 08:48:24 +00:00
Jacques Le Roux 3369dca046 Replaces title="${uiLabelMap.CommonEmptyHeader}" by title=" " where it's known to not be a problem. Here with links styled by widget-style="buttontext"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340373 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 08:45:18 +00:00
Jacques Le Roux 702698c247 Defintively closes "The Label Manager is wrongly overriding CommonEmptyHeader" https://issues.apache.org/jira/browse/OFBIZ-4652
CommonEmptyHeader is now useless, so this is no longer a concern

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340372 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 08:42:13 +00:00
Jacques Le Roux 86d74bd36b No reasons to not show those fields titles
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340367 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 07:55:29 +00:00
Jacques Le Roux 2936e36573 Removes old unused code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340362 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 07:05:40 +00:00
Jacques Le Roux 5c8d235c32 Removes old unused code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340361 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 07:04:12 +00:00
Jacques Le Roux 1255c1e116 A patch from Harsha Chadhar for "Can not add "Question Options" within the Survey section of the Content application." https://issues.apache.org/jira/browse/OFBIZ-2959
Reported by Brant Levinson 19/Sep/09 : When editing a question in Content --> Survey which has a "Selected Option" Question Type, the page does not allow for the creation of a Question Option. 

Sumit Pandint tested:
It can be reproduced in following steps -
1) Go to : https://demo-trunk.ofbiz.apache.org:8443/content/control/EditSurveyQuestions?surveyId=1000
OR
https://demo-trunk.ofbiz.apache.org:8443/content/control/EditSurveyQuestions?surveyId=1000&surveyQuestionId=10000&surveyQuestionCategoryId=1000#edit
2) Create New Question with "Survey Question Type Id" = "Selected Option"
3) ERROR
4) Question starts appearing in list.
5) Page rendering exception is coming in create question option section.
6) Apply patch and observe screen : OK

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340357 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 06:53:58 +00:00
Jacques Le Roux 7414a3a634 A patch from Leon for "Exception there when trying to update order's "Shipping Destination Address"" https://issues.apache.org/jira/browse/OFBIZ-4865
If click the "update" button of "Shipping Destination Address" in order view page, an exception thrown out as:
    The Following Errors Occurred:
    BeanShell execution caused an error: Sourced file: inline evaluation of: `` shipmentMethod = parameters.get("shipmentMethod"); if(s . . . ''

I searched the log and find the root cause is "java.lang.ArrayIndexOutOfBoundsException" from bsh script. As Paul told, there should be at least two "@" chars in "shipmentmethod" value. So I guess maybe somewhere "@" is missing. I tried to lookup for codes which construct parameters map for calling, and fortunately, I found it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340352 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 06:39:24 +00:00
Jacopo Cappellato c60e7870fd Added new method "putIfAbsentAndGet" to UtilCache: it is similar to putIfAbsent but it always return the value even if the value was missing and added to the cache by method.
This can be useful to improve code like:

cache.putIfAbsent("key", "value");
value = cache.get("key"); // if a concurrent thread has cleared the cache the value could be null

into this:

value = cache.putIfAbsentAndGet("key", "value");



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340351 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 06:36:41 +00:00
Jacopo Cappellato 363ce98d69 Made the static variable Debug.dateFormat a private and final field because it is only used locally and DateFormat is not thread safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340347 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 06:18:07 +00:00
Jacques Le Roux 671e6a500d A completing patch from Pierre Smits "Help screens in Manufacturing" https://issues.apache.org/jira/browse/OFBIZ-4802
jleroux: I reviewed the English part (and the licenses in NL part) and only fixed a typo in EN/Help_MFG_ProductionRunCosts.xml (was prouction). I also wondered about the new content of Help_MFG_FindInventoryEventPlan, but it's quite correct

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340273 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 22:00:50 +00:00
Adrian Crum 133393f087 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340148 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 16:04:03 +00:00
Adrian Crum 217445e8af Refactored the artifact info code in Mini-language. Made it less dependent on implementation details and made it more flexible and efficient.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340143 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 15:52:11 +00:00
Adrian Crum b7025ca701 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339774 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 18:25:49 +00:00
Adrian Crum e1e93d0eb2 Overhauled Mini-language <if-instance-of> and <if-not-empty> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339771 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 18:23:20 +00:00
Adrian Crum a3ebab15ff Consolidated some redundant Mini-language classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339610 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 14:14:03 +00:00
Jacopo Cappellato 4aebe81b8f Based on suggestion from Daniel Dekany (committer/maintainer of the Freemarker's project):
"Since BeansWrapper.getDefaultInstance() returns an instance that is
 shared in the scope of the class-loader that defined the FreeMarker
 classes, and since possibly multiple independently developed
 components in your system use FreeMarker and thus getDefaultInstance
 (and you may don't even know about it), and since the returned
 BeanWrapper can be configured (not read-only), you never know how the
 returned BeanWrapper is configured. So you add a 3rd party component,
 and if you are unlucky, suddenly your other component is broken.
 As of creating new BeansWrapper, be sure you create it only once
 during the application life-cycle and then reuse the same instance, or
 else it will have to rebuild the class introspection cache again and
 again."
 
 I have replaced the usage of the static instance of the BeansWrapper with a newly created object. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339504 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 07:25:13 +00:00
Adrian Crum 162b7a7651 Overhauled Mini-language <check-permission> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339291 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 18:05:20 +00:00
Adrian Crum 05132fa087 Added new class to model the Mini-language <fail-message> and <fail-property> elements. Updated the <add-error> element to use the new class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339290 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 18:04:30 +00:00
Adrian Crum 3b98e384e6 A bunch of small fixups in Mini-language.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339228 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 15:25:11 +00:00