You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/10/19 10:02:28 UTC

svn commit: r586303 - in /ofbiz/trunk/framework/example: webapp/example/includes/ widget/example/CommonScreens.xml widget/example/ExampleMenus.xml

Author: jacopoc
Date: Fri Oct 19 01:02:28 2007
New Revision: 586303

URL: http://svn.apache.org/viewvc?rev=586303&view=rev
Log:
Converted appbar of the Example application from ftl to widget menu.

Removed:
    ofbiz/trunk/framework/example/webapp/example/includes/
Modified:
    ofbiz/trunk/framework/example/widget/example/CommonScreens.xml
    ofbiz/trunk/framework/example/widget/example/ExampleMenus.xml

Modified: ofbiz/trunk/framework/example/widget/example/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/CommonScreens.xml?rev=586303&r1=586302&r2=586303&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/CommonScreens.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/CommonScreens.xml Fri Oct 19 01:02:28 2007
@@ -35,7 +35,8 @@
                 <!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
                 <!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
                 <set field="activeApp" value="example" global="true"/>
-                <set field="appheaderTemplate" value="component://example/webapp/example/includes/appheader.ftl" global="true"/>
+                <set field="applicationMenuName" value="ExampleAppBar" global="true"/>
+                <set field="applicationMenuLocation" value="component://example/widget/example/ExampleMenus.xml" global="true"/>
             </actions>
             <widgets>
                 <include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>

Modified: ofbiz/trunk/framework/example/widget/example/ExampleMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleMenus.xml?rev=586303&r1=586302&r2=586303&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/ExampleMenus.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/ExampleMenus.xml Fri Oct 19 01:02:28 2007
@@ -20,6 +20,23 @@
 
 <menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">      
+
+    <menu name="ExampleAppBar" default-menu-item-name="main" id="app-navigation" type="simple" title="${uiLabelMap.ExampleApplication}"
+        default-selected-style="selected" selected-menuitem-context-field-name="headerItem">
+        <menu-item name="main" title="${uiLabelMap.CommonMain}"><link target="main"/></menu-item>
+        <menu-item name="Example" title="${uiLabelMap.ExampleExample}"><link target="FindExample"/></menu-item>
+        <menu-item name="ExampleFeature" title="${uiLabelMap.ExampleFeature}"><link target="FindExampleFeature"/></menu-item>
+
+        <menu-item name="Logout" title="Logout" align-style="col-right" selected-style="selected">
+            <condition><not><if-empty field-name="userLogin"/></not></condition>
+            <link target="logout"/>
+        </menu-item>
+        <menu-item name="Login" title="Login" align-style="col-right" selected-style="selected">
+            <condition><if-empty field-name="userLogin"/></condition>
+            <link target="${checkLoginUrl}"/>
+        </menu-item>
+    </menu>
+
     <menu name="EditExample" default-selected-style="selected" type="simple"
             menu-container-style="button-bar button-style-1" selected-menuitem-context-field-name="tabButtonItem">
         <menu-item name="EditExample" title="${uiLabelMap.ExampleExample}">