You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/09/17 10:51:08 UTC

svn commit: r576306 - /myfaces/trinidad/trunk/trinidad/src/site/xdoc/devguide/navigation.xml

Author: matzew
Date: Mon Sep 17 01:51:05 2007
New Revision: 576306

URL: http://svn.apache.org/viewvc?rev=576306&view=rev
Log:
fixed some doc typos

Modified:
    myfaces/trinidad/trunk/trinidad/src/site/xdoc/devguide/navigation.xml

Modified: myfaces/trinidad/trunk/trinidad/src/site/xdoc/devguide/navigation.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/src/site/xdoc/devguide/navigation.xml?rev=576306&r1=576305&r2=576306&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad/src/site/xdoc/devguide/navigation.xml (original)
+++ myfaces/trinidad/trunk/trinidad/src/site/xdoc/devguide/navigation.xml Mon Sep 17 01:51:05 2007
@@ -30,7 +30,7 @@
           <li><a href="#Introduction">Introduction</a></li>
           <li><a href="#Navigation Components and Children">Navigation Components and Children</a></li>
           <li><a href="#The Navigation Model">The Navigation Model</a></li>
-          <li><a href="#Navigation Components and the NavigationModel">Navigation Components and the NavigationModel</a></li>
+          <li><a href="#Navigation Components and the MenuModel">Navigation Components and the MenuModel</a></li>
           <li><a href="#Page">Page</a></li>
         </ul>
       </p>
@@ -152,13 +152,13 @@
   xmlns:tr="http://myfaces.apache.org/"&gt;
   &lt;jsp:directive.page contentType="text/html;charset=utf-8"/&gt;
   &lt;f:view&gt;
-    &lt;tr:document title="NavigationModel Demo" maximized="true"&gt;
+    &lt;tr:document title="MenuModel Demo" maximized="true"&gt;
       &lt;tr:form&gt;
         &lt;tr:panelPage&gt;
           &lt;f:facet name="branding"&gt;
             &lt;tr:panelGroup layout="horizontal"&gt;
               &lt;tr:objectIcon name="logo"/&gt;
-              &lt;tr:outputText value="NavigationModel Demo"/&gt;
+              &lt;tr:outputText value="MenuModel Demo"/&gt;
             &lt;/tr:panelGroup&gt;
           &lt;/f:facet&gt;
           &lt;f:facet name="navigationGlobal"&gt;
@@ -209,18 +209,18 @@
   </p>
   
   <p>
-  What is needed is a model object that knows the application hierarchy and also knows how to say what is the current "focus path" in that hierarchy. The NavigationModel class was created for this purpose. NavigationModel extends TreeModel, so if you are not familiar with the model for the tree it is important that you first read the <a href="tree.html">tree</a> chapter.
+  What is needed is a model object that knows the application hierarchy and also knows how to say what is the current "focus path" in that hierarchy. The MenuModel class was created for this purpose. MenuModel extends TreeModel, so if you are not familiar with the model for the tree it is important that you first read the <a href="tree.html">tree</a> chapter.
   </p>
 
   <p>
-  The navigation model knows how to go from the current viewId to the focus path. For example if I am on page a1b2c1, a call to getFocusPath() will return the focus path of a1, a1b2, and a1b2c1. 
+  The navigation model knows how to go from the current viewId to the focus path. For example if I am on page a1b2c1, a call to getFocusRowKey() will return the focus path of a1, a1b2, and a1b2c1. 
    </p>
  
   <p>Notice that the navigationModel has no special knowledge of page navigation and places no requirements on the nodes that go into the tree. The components that take a navigationModel use a commandNavigationItem component to stamp out the data in the tree. The default actionListener mechanism is used for page navigation.
   </p>
  
   <p>
-  The following example shows how a navigation model can be created in faces-config. The DemoNavigationItem class is a bean. The TreeModelAdapter class creates a ChildPropertyTreeModel instance, and the NavigationModelAdapter creates a ViewIdPropertyNavigationModel instance which can be retrieved by calling NavigationModelAdapter.getModel(). Please see the javadoc for more information on ChildPropertyTreeModel and ViewIdPropertyNavigationModel.
+  The following example shows how a navigation model can be created in faces-config. The DemoNavigationItem class is a bean. The TreeModelAdapter class creates a ChildPropertyTreeModel instance, and the MenuModelAdapter creates a ViewIdPropertyMenuModel instance which can be retrieved by calling MenuModelAdapter.getModel(). Please see the javadoc for more information on ChildPropertyTreeModel and ViewIdPropertyMenuModel.
   </p>
 
   <p><a href="#endfacesconfig">Skip to end of faces-config fragment.</a></p>
@@ -568,8 +568,8 @@
   &lt;!-- create the navigationModel --&gt;
   
   &lt;managed-bean&gt;
-    &lt;managed-bean-name&gt;viewIdNavigationModel&lt;/managed-bean-name&gt;
-    &lt;managed-bean-class&gt;org.apache.myfaces.trinidad.model.ViewIdPropertyNavigationModel&lt;/managed-bean-class&gt;
+    &lt;managed-bean-name&gt;viewIdMenuModel&lt;/managed-bean-name&gt;
+    &lt;managed-bean-class&gt;org.apache.myfaces.trinidad.model.ViewIdPropertyMenuModel&lt;/managed-bean-class&gt;
     &lt;managed-bean-scope&gt;none&lt;/managed-bean-scope&gt;
     &lt;managed-property&gt;
       &lt;property-name&gt;viewIdProperty&lt;/property-name&gt;
@@ -583,11 +583,11 @@
   
   &lt;managed-bean&gt;
     &lt;managed-bean-name&gt;navigationModel&lt;/managed-bean-name&gt;
-    &lt;managed-bean-class&gt;org.apache.myfaces.trinidaddemo.nav.NavigationModelAdapter&lt;/managed-bean-class&gt;
+    &lt;managed-bean-class&gt;org.apache.myfaces.trinidaddemo.nav.MenuModelAdapter&lt;/managed-bean-class&gt;
     &lt;managed-bean-scope&gt;session&lt;/managed-bean-scope&gt;   
     &lt;managed-property&gt;
       &lt;property-name&gt;model&lt;/property-name&gt;
-      &lt;value&gt;#{viewIdNavigationModel}&lt;/value&gt;
+      &lt;value&gt;#{viewIdMenuModel}&lt;/value&gt;
     &lt;/managed-property&gt;
     &lt;managed-property&gt;
       &lt;property-name&gt;aliasList&lt;/property-name&gt;
@@ -608,7 +608,7 @@
 </source>
   <a name="endfacesconfig"></a>
   </section>
-  <section name="Navigation Components and the NavigationModel">
+  <section name="Navigation Components and the MenuModel">
   <p>
   <b>Note</b>: In a subsequent release the use of the level and startLevel attributes will almost certainly be replaced with an el expression in the 'value' attribute.
   </p>
@@ -622,13 +622,13 @@
   xmlns:tr="http://myfaces.apache.org/trinidad"&gt;
   &lt;jsp:directive.page contentType="text/html;charset=utf-8"/&gt;
   &lt;f:view&gt;
-    &lt;tr:document title="NavigationModel Demo" maximized="true"&gt;
+    &lt;tr:document title="MenuModel Demo" maximized="true"&gt;
       &lt;tr:form&gt;
         &lt;tr:panelPage&gt;
           &lt;f:facet name="branding"&gt;
             &lt;tr:panelGroup layout="horizontal"&gt;
               &lt;tr:objectIcon name="logo"/&gt;
-              &lt;tr:outputText value="NavigationModel Demo"/&gt;
+              &lt;tr:outputText value="MenuModel Demo"/&gt;
             &lt;/tr:panelGroup&gt;
           &lt;/f:facet&gt;
           &lt;f:facet name="navigationGlobal"&gt;
@@ -704,13 +704,13 @@
   xmlns:tr="http://myfaces.apache.org/trinidad"&gt;
   &lt;jsp:directive.page contentType="text/html;charset=utf-8"/&gt;
   &lt;f:view&gt;
-    &lt;tr:document title="NavigationModel Demo" maximized="true"&gt;
+    &lt;tr:document title="MenuModel Demo" maximized="true"&gt;
       &lt;tr:form&gt;
         &lt;tr:page&gt;
           &lt;f:facet name="branding"&gt;
             &lt;tr:panelGroup layout="horizontal"&gt;
               &lt;tr:objectIcon name="logo"/&gt;
-              &lt;tr:outputText value="NavigationModel Demo"/&gt;
+              &lt;tr:outputText value="MenuModel Demo"/&gt;
             &lt;/tr:panelGroup&gt;
           &lt;/f:facet&gt;
           &lt;f:facet name="nodeStamp"&gt;