Changes for page Your First D2W Project
Last modified by Bastian Triller on 2013/01/12 00:43
From version 14.1
edited by Steve Peery
on 2013/01/12 00:35
on 2013/01/12 00:35
Change comment:
There is no comment for this version
To version 15.1
edited by Pascal Robert
on 2012/08/05 14:29
on 2012/08/05 14:29
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. speery1 +XWiki.probert - Content
-
... ... @@ -138,18 +138,8 @@ 138 138 139 139 {{/code}} 140 140 141 - Addthefollowingmethod in the **Session** classfor the navigation root.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. 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 - 153 153 The first method we will implement in **MainNavigationController** is a generic method to list objects for a specific entity. 154 154 155 155 {{code language="java"}} ... ... @@ -207,7 +207,7 @@ 207 207 208 208 After login, you will see the blog entries and if you click the **Authors** tab, you see the list of authors. Each item in the list have 3 actions by default: **Inspect** (view the object), **Edit** (modify the object) and the red X button to delete the object. 209 209 210 -Click **Edit** on an author, and you will see that it display snot only the author's details but also blog entries created for that user. You can even create a new blog entry directly from the author.200 +Click **Edit** on an author, and you will see that it display not only the author's details but also blog entries created for that user. You can even create a new blog entry directly from the author. 211 211 212 212 Now, edit a blog entry. If you click on the field next to the **Creation Date** or **Last Modified**, a calendar widget appears because those two fields are marked as dates in the data model, that's EOF and D2W magic at work. 213 213 ... ... @@ -231,6 +231,6 @@ 231 231 232 232 [[image:Capture d’écran 2012-08-05 à 07.30.15.png||border="1"]] 233 233 234 -We are done. Save the file in RulesModeler, and run the application again. Try editing a blog entry and you will notice that we know have a rich editor for the content and that the ordering of the fields is different, without having to change the HTML or the Java code 224 +We are done. Save the file in RulesModeler, and run the application again. Try editing a blog entry and you will notice that we know have a rich editor for the content and that the ordering of the fields is different, without having to change the HTML or the Java code! 235 235 236 -Congratulations, you are done with the D2W tutorial [[The next tutorial is about creating a stateful application>>documentation:Your First Stateful Project]].226 +Congratulations, you are done with the D2W tutorial!