You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pr...@apache.org on 2017/07/20 09:27:33 UTC

svn commit: r1802464 - /ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleScreens.xml

Author: pranayp
Date: Thu Jul 20 09:27:32 2017
New Revision: 1802464

URL: http://svn.apache.org/viewvc?rev=1802464&view=rev
Log:
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/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleScreens.xml

Modified: ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleScreens.xml?rev=1802464&r1=1802463&r2=1802464&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleScreens.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleScreens.xml Thu Jul 20 09:27:32 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,7 +42,7 @@ under the License.
                                     <container style="screenlet-body">
                                         <label style="h3">${uiLabelMap.ExampleSourceCode}</label>
                                         <label>${uiLabelMap.ExampleDefinitionName} &quot;DateTimeFieldsExampleForm&quot; ${uiLabelMap.ExampleDefinitionFile}</label>
-                                        <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/plugins/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
+                                        <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
                                         <include-form name="DateTimeFieldsExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
                                     </container>
                                 </container>
@@ -50,7 +51,7 @@ under the License.
                                     <container style="screenlet-body">
                                         <label style="h3">${uiLabelMap.ExampleSourceCode}</label>
                                         <label>${uiLabelMap.ExampleDefinitionName} &quot;DropDownFieldsExampleForm&quot; ${uiLabelMap.ExampleDefinitionFile}</label>
-                                        <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/plugins/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
+                                        <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
                                     </container>
                                     <section>
                                         <actions>
@@ -88,7 +89,7 @@ under the License.
                                         <container style="screenlet-body">
                                             <label style="h3">${uiLabelMap.ExampleSourceCode}</label>
                                             <label>${uiLabelMap.ExampleDefinitionName} &quot;ExampleLookupFields&quot; ${uiLabelMap.ExampleDefinitionFile}</label>
-                                            <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/plugins/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
+                                            <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
                                             <include-form name="ExampleLookupFields" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
                                         </container>
                                 </container>
@@ -97,7 +98,7 @@ under the License.
                                     <container style="screenlet-body">
                                         <label style="h3">${uiLabelMap.ExampleSourceCode}</label>
                                         <label>${uiLabelMap.ExampleDefinitionName} &quot;FieldGroupExampleForm&quot; ${uiLabelMap.ExampleDefinitionFile}</label>
-                                        <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/plugins/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
+                                        <link target="${formWidgetExampleFormsUrl}" 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"/>
                                             <link target="javascript:expandAll(false);" text="${uiLabelMap.CommonCollapseAll}" style="buttontext collapse-all" url-mode="plain"/>
@@ -110,7 +111,7 @@ under the License.
                                     <container style="screenlet-body">
                                         <label style="h3">${uiLabelMap.ExampleSourceCode}</label>
                                         <label>${uiLabelMap.ExampleDefinitionName} &quot;SelectionBoxesExampleForm&quot; ${uiLabelMap.ExampleDefinitionFile}</label>
-                                        <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/plugins/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
+                                        <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
                                         <include-form name="SelectionBoxesExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
                                     </container>
                                 </container>
@@ -119,7 +120,7 @@ under the License.
                                     <container style="screenlet-body">
                                         <label style="h3">${uiLabelMap.ExampleSourceCode}</label>
                                         <label>${uiLabelMap.ExampleDefinitionName} &quot;LinksExampleForm&quot; ${uiLabelMap.ExampleDefinitionFile}</label>
-                                        <link target="http://svn.apache.org/repos/asf/ofbiz/trunk/plugins/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
+                                        <link target="${formWidgetExampleFormsUrl}" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
                                         <include-form name="LinksExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
                                     </container>
                                 </container>