svn commit: r919425 - in /ofbiz/trunk/framework/resources/templates: CommonScreens.xml Screens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r919425 - in /ofbiz/trunk/framework/resources/templates: CommonScreens.xml Screens.xml

jacopoc
Author: jacopoc
Date: Fri Mar  5 14:09:40 2010
New Revision: 919425

URL: http://svn.apache.org/viewvc?rev=919425&view=rev
Log:
Improved template code for menu setup; thanks to Chris Snow for the patch (OFBIZ-3539)

Modified:
    ofbiz/trunk/framework/resources/templates/CommonScreens.xml
    ofbiz/trunk/framework/resources/templates/Screens.xml

Modified: ofbiz/trunk/framework/resources/templates/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/resources/templates/CommonScreens.xml?rev=919425&r1=919424&r2=919425&view=diff
==============================================================================
--- ofbiz/trunk/framework/resources/templates/CommonScreens.xml (original)
+++ ofbiz/trunk/framework/resources/templates/CommonScreens.xml Fri Mar  5 14:09:40 2010
@@ -25,7 +25,6 @@
     <screen name="@component-resource-name@CommonDecorator">
         <section>
             <actions>
-                <set field="headerItem" value="main"/>
             </actions>
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">

Modified: ofbiz/trunk/framework/resources/templates/Screens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/resources/templates/Screens.xml?rev=919425&r1=919424&r2=919425&view=diff
==============================================================================
--- ofbiz/trunk/framework/resources/templates/Screens.xml (original)
+++ ofbiz/trunk/framework/resources/templates/Screens.xml Fri Mar  5 14:09:40 2010
@@ -5,9 +5,10 @@
     <screen name="main">
         <section>
             <actions>
+                <set field="headerItem" value="main"/><!-- this highlights the selected menu-item with name "main" -->
             </actions>
             <widgets>
-                <decorator-screen name="@component-resource-name@CommonDecorator" location="component://@component-name@/widget/CommonScreens.xml">
+                <decorator-screen name="@component-resource-name@CommonDecorator" location="${parameters.mainDecoratorLocation}">
                     <decorator-section name="body">
                     </decorator-section>
                 </decorator-screen>