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-n...@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-n...@commondecorator" 
location="component://@component-name@/widget/CommonScreens.xml">
+                <decorator-screen 
name="@component-resource-n...@commondecorator" 
location="${parameters.mainDecoratorLocation}">
                     <decorator-section name="body">
                     </decorator-section>
                 </decorator-screen>


Reply via email to