Author: pranayp Date: Thu Jul 20 10:01:36 2017 New Revision: 1802467 URL: http://svn.apache.org/viewvc?rev=1802467&view=rev Log: Manually applied fix from trunk for revision: 1802464.
=========================================== Fixed: Wrong repository links on FormWidgetExamples page. (OFBIZ-9494) Updated the URL path and instead of changing it at all the places introduced a variable. So in future same variable value can be changed instead of changing its redundant occurrences. Thanks Aditya Sharma for reporting and providing the patch. =========================================== Modified: ofbiz/branches/release16.11/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml Modified: ofbiz/branches/release16.11/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml?rev=1802467&r1=1802466&r2=1802467&view=diff ============================================================================== --- ofbiz/branches/release16.11/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml (original) +++ ofbiz/branches/release16.11/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml Thu Jul 20 10:01:36 2017 @@ -26,6 +26,7 @@ under the License. <actions> <set field="headerItem" value="FormWidgetExamples"/> <set field="layoutSettings.javaScripts[]" value="/images/combobox.js" global="true" /> + <set field="formWidgetExampleFormsUrl" value="http://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml"/> </actions> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> @@ -41,6 +42,7 @@ under the License. <container style="screenlet-body"> <label style="h3">${uiLabelMap.ExampleSourceCode}</label> <label>${uiLabelMap.ExampleDefinitionName} "DateTimeFieldsExampleForm" ${uiLabelMap.ExampleDefinitionFile}</label> + <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <include-form name="DateTimeFieldsExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/> </container> @@ -50,6 +52,7 @@ under the License. <container style="screenlet-body"> <label style="h3">${uiLabelMap.ExampleSourceCode}</label> <label>${uiLabelMap.ExampleDefinitionName} "DropDownFieldsExampleForm" ${uiLabelMap.ExampleDefinitionFile}</label> + <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> </container> <section> @@ -88,6 +91,7 @@ under the License. <container style="screenlet-body"> <label style="h3">${uiLabelMap.ExampleSourceCode}</label> <label>${uiLabelMap.ExampleDefinitionName} "ExampleLookupFields" ${uiLabelMap.ExampleDefinitionFile}</label> + <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <include-form name="ExampleLookupFields" location="component://example/widget/example/FormWidgetExampleForms.xml"/> </container> @@ -97,6 +101,7 @@ under the License. <container style="screenlet-body"> <label style="h3">${uiLabelMap.ExampleSourceCode}</label> <label>${uiLabelMap.ExampleDefinitionName} "FieldGroupExampleForm" ${uiLabelMap.ExampleDefinitionFile}</label> + <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <container style="button-bar"> <link target="javascript:expandAll(true);" text="${uiLabelMap.CommonExpandAll}" style="buttontext expand-all" url-mode="plain"/> @@ -110,6 +115,7 @@ under the License. <container style="screenlet-body"> <label style="h3">${uiLabelMap.ExampleSourceCode}</label> <label>${uiLabelMap.ExampleDefinitionName} "SelectionBoxesExampleForm" ${uiLabelMap.ExampleDefinitionFile}</label> + <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <include-form name="SelectionBoxesExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/> </container> @@ -119,6 +125,7 @@ under the License. <container style="screenlet-body"> <label style="h3">${uiLabelMap.ExampleSourceCode}</label> <label>${uiLabelMap.ExampleDefinitionName} "LinksExampleForm" ${uiLabelMap.ExampleDefinitionFile}</label> + <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/> <include-form name="LinksExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/> </container>