Changes for page Your First D2W Project

Last modified by Bastian Triller on 2013/01/12 00:43

From version 11.1
edited by Pascal Robert
on 2012/08/09 05:09
Change comment: There is no comment for this version
To version 12.1
edited by Steve Peery
on 2013/01/12 00:31
Change comment: Added navigationRootChoice method.

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.probert
1 +XWiki.speery
Content
... ... @@ -138,8 +138,18 @@
138 138  
139 139  {{/code}}
140 140  
141 -The first array defines what the top level navigation is going to be, and this is where we define the two tabs (the //childrenChoice// dictionary). After that, we define the other parts of the navigation. You see references to //action = session.navController//. This is the action (method) that will be called for the specified navigation element, so let's create those methods in the **MainNavigationController** class.
141 +Add the following method in **Session** for the navigation root.
142 142  
143 +{{code}}
144 +
145 +public String navigationRootChoice() {
146 + return "home";
147 +}
148 +
149 +{{/code}}
150 +
151 +The first array in the plist defines what the top level navigation is going to be, and this is where we define the two tabs (the //childrenChoice// dictionary). After that, we define the other parts of the navigation. You see references to //action = session.navController//. This is the action (method) that will be called for the specified navigation element, so let's create those methods in the **MainNavigationController** class.
152 +
143 143  The first method we will implement in **MainNavigationController** is a generic method to list objects for a specific entity.
144 144  
145 145  {{code language="java"}}