click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r932671 - /click/trunk/click/examples/webapp/control/menu-demo.htm
Date Sat, 10 Apr 2010 06:21:53 GMT
Author: sabob
Date: Sat Apr 10 06:21:53 2010
New Revision: 932671

URL: http://svn.apache.org/viewvc?rev=932671&view=rev
Log:
doco

Modified:
    click/trunk/click/examples/webapp/control/menu-demo.htm

Modified: click/trunk/click/examples/webapp/control/menu-demo.htm
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/webapp/control/menu-demo.htm?rev=932671&r1=932670&r2=932671&view=diff
==============================================================================
--- click/trunk/click/examples/webapp/control/menu-demo.htm (original)
+++ click/trunk/click/examples/webapp/control/menu-demo.htm Sat Apr 10 06:21:53 2010
@@ -17,21 +17,27 @@
    under the License.*#
 -->
 
-In Click a applications menu is in the configuration file 
+In Click, an application menu can be defined in the configuration file
 <a href="$context/source-viewer.htm?filename=WEB-INF/menu.xml">/WEB-INF/menu.xml</a>.
 <p/>
-This JavaScript drop down menu is rendered using the Velocity Macro <tt>writeMenu()</tt>,
-defined in <a href="$context/source-viewer.htm?filename=macro.vm">macro.vm</a>.
+This JavaScript drop down menu can be rendered by referencing the root Menu in
+the Page template.
+<pre class="codeHtml">
+#36;rootMenu </pre>
+
+The menu can also be rendered using a Velocity Macro, such as the
+<tt>writeMenu()</tt> macro defined in
+<a href="$context/source-viewer.htm?filename=macro.vm">macro.vm</a>.
 
 <pre class="codeHtml">
 &#35;writeMenu(&#36;rootMenu) </pre>
 
-The example menu pages all extend <tt>MenuPage</tt> which defines a <span
class="st">"rootMenu"</span>
+The example menu pages all extend <tt>BorderPage</tt> which defines a <span
class="st">"rootMenu"</span>
 control.
 
 <pre class="codeJava">
 <span class="kw">public class</span> MenuPage <span class="kw">extends</span>
BorderedPage {
 
-     @Bindable <span class="kw">public</span> Menu rootMenu = Menu.getRootMenu();
+     @Bindable <span class="kw">protected</span> Menu rootMenu = new MenuFactory().getRootMenu();
 
 }</pre>



Mime
View raw message