Commit Graph
3397 Commits
Author SHA1 Message Date
Jacques Le Roux ff0be4eae0 A patch from Anurag Chandak for "The 1st time you close a project you get an error, it works the 2d time" https://issues.apache.org/jira/browse/OFBIZ-2947
To regenerate this issue on trunk, here are the steps:

    Go to Project --> Projects
    Click on New Project
    Only enter Project Name and click on save button
    Close the current project.
    The following error is thrown 

Proper fix: issue occurred due to use of inappropriate map. Instead of fetching the value of projectId from parameters, its better to get it from context map as its already set at screen.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749282 13f79535-47bb-0310-9956-ffa450edef68
2016-06-20 09:32:24 +00:00
Pranay Pandey 0f171a16ef [OFBIZ-7432] Added missing SecurityUiLabels in scrum component main-decorator to fix UI Label issues on Profile View.
Thanks Aditi Patidar for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749026 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 13:48:45 +00:00
Mridul Pathak 74afc2fd89 [OFBIZ-7278] Birt: Arrange UI labels in alphabetic order. Thanks Shivangi Tanwar for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749022 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 13:42:44 +00:00
Deepak Dixit f884e7682d (OFBIZ-7218) Fix typo in groovy file name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749019 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 13:37:27 +00:00
Mridul Pathak 1c2b57ab3a [OFBIZ-7279] ebay: Arrange UI labels in alphabetic order. Thanks Shivangi Tanwar for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749015 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 13:33:25 +00:00
Deepak Dixit 612cce4f90 (OFBIZ-7218) Fix typo in groovy file name. Thanks Pawan for reporting this.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749011 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 13:25:04 +00:00
Mridul Pathak a4c0a03c43 [OFBIZ-7276] BI: Arrange UI labels in alphabetic order. Thanks Shivangi Tanwar for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749010 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 13:24:43 +00:00
Pranay Pandey 5dde01c79c [OFBIZ-7367] Fixed: 'From Date' and 'Through Date' is not setting up on adding a new task member as weren't being sent to service. Thanks Aditi Patidar for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748972 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 12:11:37 +00:00
Deepak Dixit ecbafc3900 (OFBIZ-7304) Applied patch from jira issue
===================================
Add a look-up for Product Id in Find Revision Screen under scrum component
===================================

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748943 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 09:50:42 +00:00
Nicolas Malin 90386de916 correct typo error introduce with the issue OFBIZ-5781 that break birt report. Thanks Rohit Koushal to raise the alert with issue OFBIZ-7364
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748824 13f79535-47bb-0310-9956-ffa450edef68
2016-06-17 09:41:18 +00:00
Pranay Pandey 1438b0490a [OFBIZ-7132] Applied slightly modified patch from the ticket. Added WebSiteAlias usage example to cmssite data.
Thanks Chandan Khandelwal for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748800 13f79535-47bb-0310-9956-ffa450edef68
2016-06-17 06:49:30 +00:00
Pranay Pandey ade762aeb3 [OFBIZ-7341] Applied patch from the ticket. Fixed image rendering issue on eCommerce customer profile view.
Thanks Mohammed Rehan Khan for reporting the issue and providing patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748394 13f79535-47bb-0310-9956-ffa450edef68
2016-06-14 12:39:03 +00:00
Jacques Le Roux 82c74b62f6 A patch from Mohammed Rehan Khan for "Getting console error while reading property value" https://issues.apache.org/jira/browse/OFBIZ-7331
We are getting same console error on following two screens.

Steps to regenerate: 
1) Go to eCommerce
2) Click on Register link
3) After click on register link, we can see error on console.

1) Now click on profile link
2) Click on create new contact information link
3) select "postal address" contact type and click on create button
4) After click on create button, we can see error on console.

Console Error:
 Error executing FreeMarker template
     [java] freemarker.template.TemplateModelException: No error description was specified for this error; low-level message: java.lang.ClassNotFoundException: org.ofbiz.base.util.EntityUtilProperties
     [java] 
     [java] ----
     [java] FTL stack trace ("~" means nesting-related):
     [java] 	- Failed at: #assign defaultCountryGeoId = Static[...  [in template "component://ecommerce/template/customer/EditContactMech.ftl" at line 185, column 13]
     [java] ----
     [java] 	at freemarker.ext.beans.ClassBasedModelFactory.get(ClassBasedModelFactory.java:52) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.DynamicKeyName.dealWithStringKey(DynamicKeyName.java:140) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.DynamicKeyName._eval(DynamicKeyName.java:75) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Expression.eval(Expression.java:81) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Dot._eval(Dot.java:41) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Expression.eval(Expression.java:81) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.MethodCall._eval(MethodCall.java:58) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Expression.eval(Expression.java:81) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Assignment.accept(Assignment.java:134) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:326) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.process(Environment.java:305) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:261)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748286 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 17:06:26 +00:00
Jacques Le Roux 10d1e72a53 A patch from Ankit Joshi for "http://docs.ofbiz.org/ is wrongly used in content" https://issues.apache.org/jira/browse/OFBIZ-7001
There are 31 occurrences and most use shortcuts. They should be converted to link to the current wiki, of course the previous shortcuts are no longer valid.
We need to replace them by hand, hence 1st find what the old shortcuts were, and then replace them with new shortcuts, or even better real links. We got bitten once by shortcuts, it's enough...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748260 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 15:23:37 +00:00
Pranay Pandey 7f2e0c003c [OFBIZ-7115] Fixed terminal errors on Timesheet overview page of projectmgr and scrum. Removed the check on workEffortId which was not making difference or directing any purpose and causing errors.
Thanks Vaibhav Jain for reporting the issue and providing initial patch, thanks Amardeep Singh Jhajj and Jacques for reviewing the patch and providing your comments, thanks Montalbano Florian for providing final patch including Scrum component.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748218 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 13:17:21 +00:00
Pranay Pandey 18ad70fe16 [OFBIZ-7296] Fixed Create Request for Quote, Create New Quote and Save links on shopping list details screen.
Thanks Mohammed Rehan Khan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748199 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 12:39:29 +00:00
Mridul Pathak 4c874ff77e [OFBIZ-7008] Support to add condition for Geo Location in Promo Engine. Adding back the code reverted in r1739637 as the tests were failing. Thanks Vishal Chhabria for providing the updated patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748186 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 12:02:27 +00:00
Pranay Pandey 893a553bf5 [OFBIZ-7291] Correcting anchor location, a line break was disturbing UI with form introduction for security error fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748164 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 09:47:01 +00:00
Pranay Pandey 227f2c8389 [OFBIZ-7291] Applied slightly modified patch from the ticket to fix security error on Remove Shopping List Item link in eCommerce.
Thanks Mohammed Rehan Khan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748156 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 09:35:41 +00:00
Pranay Pandey 8174d2b8f2 [OFBIZ-7270] - Fixed security error on Create New Shopping List in eCommerce.
Thanks Mohammed Rehan Khan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748133 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 08:15:35 +00:00
Jacques Le Roux cda0fa5c3d No functional changes. While reviewing Wai's patch for OFBIZ-7112 I noticed that he (re)used this pattern introduced earlier:
(resource == null || resource.length() <= 0)
From Java spec. a String, Collection, Map or CharSequence can't have a negative length, so the pattern above can be reduced to 
  (resource == null || resource.length() == 0)
which can be replaced using 
  UtilValidate.isEmpty()
I checked, there are several other occurrences of this pattern (some very old, I guess most were routinely copied from an initial occurrence). I decided to replace all of them, here they are.

I did that already long ago for the 
  (resource == null || resource.length() == 0)
pattern. It remains 4 of them. Three are justified (because of the dependency on base component or because using isEmpty() on Object is disputable for performance reasons). I took care of the remaining one right aways (in SplashScreen.java)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747976 13f79535-47bb-0310-9956-ffa450edef68
2016-06-12 10:43:58 +00:00
Deepak Dixit eb523b9805 (OFBIZ-7245) Renamed groovy file in upper camel case as per best practices
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747850 13f79535-47bb-0310-9956-ffa450edef68
2016-06-11 06:12:27 +00:00
Deepak Dixit 54f6e94bc1 (OFBIZ-7218) Relocate .groovy files in the specialpurpose/projectmgr component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747848 13f79535-47bb-0310-9956-ffa450edef68
2016-06-11 05:50:23 +00:00
Deepak Dixit 3c08e51b02 (OFBIZ-7244) Relocate .groovy files in the specialpurpose/webpos component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747796 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 20:01:05 +00:00
Deepak Dixit 4a98e38766 (OFBIZ-7243) Relocate .groovy files in the specialpurpose/scrums component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747795 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:58:55 +00:00
Deepak Dixit efd3dec8b3 (OFBIZ-7242) Relocate .groovy files in the specialpurpose/passport component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747794 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:56:19 +00:00
Deepak Dixit b498b235f7 (OFBIZ-7241) Relocate .groovy files in the specialpurpose/lucene component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747793 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:54:37 +00:00
Deepak Dixit 79c3525a68 (OFBIZ-7240) Relocate .groovy files in the specialpurpose/hhfacilit component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747790 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:48:27 +00:00
Deepak Dixit 5972dfae63 (OFBIZ-7239) Relocate .groovy files in the specialpurpose/googlebase component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747789 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:45:28 +00:00
Deepak Dixit 1bd0c04a73 (OFBIZ-7238) Relocate .groovy files in the specialpurpose/example component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747787 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:40:19 +00:00
Deepak Dixit dac494ac6a (OFBIZ-7237) Relocate .groovy files in the specialpurpose/ecommerce component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747786 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:35:12 +00:00
Deepak Dixit 6187e07097 (OFBIZ-7236) Relocate .groovy files in the specialpurpose/ebaystore component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747785 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:31:30 +00:00
Deepak Dixit f0796396c4 (OFBIZ-7235) Relocate .groovy files in the specialpurpose/ebay component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747784 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:27:48 +00:00
Deepak Dixit 554cd4367c (OFBIZ-7234) Relocate .groovy files in the specialpurpose/birt component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747782 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:22:06 +00:00
Deepak Dixit d14bdf9ed2 (OFBIZ-7233) Relocate .groovy files in the specialpurpose/bi component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747781 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:12:22 +00:00
Deepak Dixit 6d3ffbb282 (OFBIZ-7232) Relocate .groovy files in the specialpurpose/assetmaint component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747777 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:01:56 +00:00
Deepak Dixit 7e981d399e (OFBIZ-7231) Relocate .groovy files in the framework/common component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747776 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 18:58:37 +00:00
Deepak Dixit 8ef8f43c0f (OFBIZ-7229) Relocate .groovy files in the product component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747774 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 18:46:51 +00:00
Deepak Dixit 366203d89f (OFBIZ-7228) Relocate .groovy files in the party component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747770 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 18:39:22 +00:00
Deepak Dixit 840949dfc2 (OFBIZ-7227) Relocate .groovy files in the order component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747769 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 18:36:39 +00:00
Deepak Dixit 91c41f165b (OFBIZ-7223) Relocate .groovy files in the content component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747756 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 17:21:10 +00:00
Deepak Dixit 2e42016e9a (OFBIZ-7219) Relocate .groovy files in the accounting component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747746 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 16:54:38 +00:00
Jacques Le Roux 5e65059e4d A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Deepak Dixit 67b3f23415 (OFBIZ-7273) Applied slightly modified patch from jira ticket
=======================================
Report "Sale Orders By Channel" is not rendering details
=======================================
Thanks Nameet Jain for your contirbution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747642 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 06:54:06 +00:00
Deepak Dixit 887f4c4eaa (OFBIZ-7289) Applied patch from jira ticket
=======================================
Monthly "Sales Report" PDF is not rendering details
=======================================
Thanks Nameet Jain for your contirbution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747639 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 06:15:02 +00:00
Jacques Le Roux 1e3c8068b1 A patch from Nameet Jain for "CMS throws error on clicking Find button" https://issues.apache.org/jira/browse/OFBIZ-7104
Steps to regenerate
1. Open the content app
2.  Click the CMS menu or use the link 
       https://localhost:8443/content/control/CMSContentFind
3. Click on Find submenu or use link
      https://localhost:8443/content/control/AdminSearch

The error is due to missing content index. We can improve the error message to guide user to index the content first. ContentErrorUiLabels.xml

jleroux: I just moved the label to be sorted right and added a French one

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747349 13f79535-47bb-0310-9956-ffa450edef68
2016-06-08 05:10:30 +00:00
Jacques Le Roux da444d1769 A patch from Pratik Kulshreshth for "Exception thrown on sorting by projectId on Request List" https://issues.apache.org/jira/browse/OFBIZ-7191
Rishi Solanki: patch to fix the issue on sorting by projectId. The field projectId does not exists in the entity used in the perform find (WorkEffortCustRequestView). Uses the proper field workEffortParentId.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1746890 13f79535-47bb-0310-9956-ffa450edef68
2016-06-05 10:07:47 +00:00
Deepak Dixit 3e08dd1c04 (OFBIZ-7164) Fix typo in freemarker else tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1746691 13f79535-47bb-0310-9956-ffa450edef68
2016-06-03 08:59:56 +00:00
Julien Nicolas 27f0959b02 OFBIZ-7160 correct typo javascrip
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1746536 13f79535-47bb-0310-9956-ffa450edef68
2016-06-02 08:39:28 +00:00
Jacques Le Roux 941d9ec1fe A slightly modified patch from James Yong for "Autocompletion for Compound Widget" https://issues.apache.org/jira/browse/OFBIZ-7061
1. The following xsd are duplicated to use namespaces
  site-conf.xsd     ->  site-conf-ns.xsd
  widget-form.xsd   ->  widget-form-ns.xsd
  widget-screen.xsd ->  widget-screen-ns.xsd
  widget-menu.xsd   ->  widget-menu-ns.xsd
  simple-methods.xsd->  simple-methods-ns.xsd
For example, in site-conf-ns.xsd, we have the following document level attribute
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://ofbiz.apache.org/Site-Conf" targetNamespace="http://ofbiz.apache.org/Site-Conf">
instead of 
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

2. The above schema are used into compound-widgets.xsd so that compound widgets use only one consolidated schema. 

3. Update ExampleCompoundWidgets.xml to use the new compound-widgets.xsd. For example
<compound-widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:sc="http://ofbiz.apache.org/Site-Conf"
        xmlns:sm="http://ofbiz.apache.org/Simple-Method"
        xmlns:wf="http://ofbiz.apache.org/Widget-Form"
        xmlns:wt="http://ofbiz.apache.org/Widget-Tree"
        xmlns:wm="http://ofbiz.apache.org/Widget-Menu"
        xmlns:ws="http://ofbiz.apache.org/Widget-Screen"
        xsi:noNamespaceSchemaLocation="../../../../framework/widget/dtd/compound-widgets.xsd">
    
    <sc:site-conf>
        <sc:request-map uri="CompoundWidgets1">
            <sc:security https="true" auth="true"/>
            <sc:event type="simple" invoke="CompoundWidgetsFunc" path="component://example/widget/example/ExampleCompoundWidgets.xml"/>
            <sc:response name="success" type="view" value="CompoundWidgets1"/>
        </sc:request-map>
        <sc:request-map uri="CompoundWidgets2"><sc:security https="true" auth="true"/><sc:response name="success" type="view" value="CompoundWidgets2"/></sc:request-map>

        <sc:view-map name="CompoundWidgets1" type="screen" page="component://example/widget/example/ExampleCompoundWidgets.xml#CompoundWidgets1"/>
        <sc:view-map name="CompoundWidgets2" type="screen" page="component://example/widget/example/ExampleCompoundWidgets.xml#CompoundWidgets2"/>
    </sc:site-conf>
...... the rest

4. Change java code to support reading xml with namespace (i.e. xml for compound widgets)

jleroux: I simply replaced tabs by spaces in Java files and removed this commented out line 
  <compound-widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/compound-widgets.xsd">
in ExampleCompoundWidgets.xml

We decided to duplicate the simple-methods.xsd rather than updating all concerned files. Else we would have to update the attributes at document level for rest of the controllers, menus, forms, simple methods and screens. For example, in controller.xml, we would have to change 
  xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd”
to 
  xmlns="http://ofbiz.apache.org/sc” xsi:schemaLocation="http://ofbiz.apache.org/dtds/site-conf-ns.xsd”>
But especially we would have to use the same syntax with namespaces prefixes than in ExampleCompoundWidgets.xml (see example above). This can be discussed because with auto-completion it's not a big deal, but could be overwhelming for existing custom projects...

James mentionned that "the schema location at compound-widgets.xsd is relative to the project...". I don't see any problems with that. We can keep as is as long as we maintain the relation (ie if the main XSDs are moved). Moreover with the previous addition of compound-widgets.xsd in widget-catalog.xml it seems all things work correctly (eg w/o the new *-ns.xsd yet committed, the auto-completion works well in ExampleCompoundWidgets.xml




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1746302 13f79535-47bb-0310-9956-ffa450edef68
2016-05-31 16:48:09 +00:00