A patch from Nicolas Malin for "Send mail to a contact list, update screen for more user frendly" https://issues.apache.org/jira/browse/OFBIZ-5136

On marketing component when you will send a mail to a contactList, the screen is easy and effective but not really user-frendly. This screen is available on marketing/control/createContactListCommEvent

I improved :
 * force text/html by default on drop-down
 * set position 2 for content type
 * use advanced editor for content
 * labelise the communicationMethodType


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446875 13f79535-47bb-0310-9956-ffa450edef68
A patch from Chatree Srichart for "The createDataResourceRole service does not check if partyId exists" https://issues.apache.org/jira/browse/OFBIZ-5133

The createDataResourceRole service has a partyId attribute as optional but its implementation method does not check if the partyId exists before creating a DataResourceRole value.
The ensurePartyRole service also has a partyId attribute as optional but its implementation method does not check if the partyId exists before creating a PartyRole value.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446876 13f79535-47bb-0310-9956-ffa450edef68
Small improvement to Web Tools services screen: Add service definition location.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446885 13f79535-47bb-0310-9956-ffa450edef68
Reverting revision 1345849 because it is not thread-safe and it doesn't work.

It appears this was an attempt to create per-tenant FOP factories, but instead each tenant overwrites other tenant's FOP factory instances.

A proper implementation would require a FOP factory cache keyed by delegator name.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446913 13f79535-47bb-0310-9956-ffa450edef68
Small improvements to ApacheFopWorker: check for file/folder existence before applying settings.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446940 13f79535-47bb-0310-9956-ffa450edef68
EntityEcaSetField.java bug fixes: test for null on field that was never null, not thread-safe.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447107 13f79535-47bb-0310-9956-ffa450edef68
Small enhancements to EntityEcaRule.java: parse <eca> element only once, improve thread safety, add some accessor methods.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447108 13f79535-47bb-0310-9956-ffa450edef68
Small enhancements to Entity ECA classes: improve thread safety, eliminate null checks on fields that are never null, add some accessor methods, small code cleanups.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447112 13f79535-47bb-0310-9956-ffa450edef68
Small fixup for my previous commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447114 13f79535-47bb-0310-9956-ffa450edef68
A patch from Shi Jinghai for "Chinese localizations (zh) for trunk (Part II)" https://issues.apache.org/jira/browse/OFBIZ-5137

Translated missing zh labels for oagis and order components.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447170 13f79535-47bb-0310-9956-ffa450edef68
Add a small method to the ServiceUtil Class which checks all incoming service attributes and look for fields with the same name in the incoming map and copy those onto the outgoing map. Also includes a userLogin if service requires one.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447246 13f79535-47bb-0310-9956-ffa450edef68
In an exception case the ServiceUtils.setServiceFields method should throw an exception and don't hide it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447603 13f79535-47bb-0310-9956-ffa450edef68
A patch from Shi Jinghai for "Chinese localizations (zh) for trunk (Part II)" https://issues.apache.org/jira/browse/OFBIZ-5137

Translated missing zh labels for party, pos and product components.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447615 13f79535-47bb-0310-9956-ffa450edef68
Small fixup for EntityEcaCondition.java accessor method.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447638 13f79535-47bb-0310-9956-ffa450edef68
A slightly modified patch from Gil Portenseigne for "Missing PartyCountryCode uiLabel" https://issues.apache.org/jira/browse/OFBIZ-5138

The label ${uiLabelMap.PartyCountryCode} is used several times in the project but i could not find the definition of PartyCountryCode in label definition files.
I looked further and found CommonCountryCode in label file which is not used and fill the need for PartyCountryCode. To solve this I propose to rename all PartyCountryCode to CommonCountryCode.

jleroux: I also moved CommonCountryCode, CommonCountryCodeMissing and CommonCountryMissing from PartyUiLabels.xml to CommonUiLabels.xml





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447664 13f79535-47bb-0310-9956-ffa450edef68
A patch from Shi Jinghai for "Chinese localizations (zh) for trunk (Part II)" https://issues.apache.org/jira/browse/OFBIZ-5137

Translated missing zh labels for projectmgr, scrum, service, webpos and webtools components. These are the last 5 components.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1448350 13f79535-47bb-0310-9956-ffa450edef68
A patch from Nicolas Malin for "Adding unit test for new element to load data" https://issues.apache.org/jira/browse/OFBIZ-5112

With the issue commit OFBIZ-4949, it' necessary to complete unit test on this feature.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449279 13f79535-47bb-0310-9956-ffa450edef68
No functional changes, just formatting and adding a required cast

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449282 13f79535-47bb-0310-9956-ffa450edef68
I was pretty stupid to blindly follow mad advice from Eclipse. I really don't understand why it find an error there, nevermind

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449286 13f79535-47bb-0310-9956-ffa450edef68
Still not sure why Eclipse complained about 
request.getSession().getServletContext()).getContextPath()

anyway
request.getContextPath()
is enough

see bottom of oracle.com/javaee/6/api/javax/servlet/ServletContext.html#method_detail

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449290 13f79535-47bb-0310-9956-ffa450edef68