Changes for page Your First Stateful Project
Last modified by Bastian Triller on 2021/08/07 03:59
From version 13.1
edited by Pascal Robert
on 2012/08/09 05:11
on 2012/08/09 05:11
Change comment:
There is no comment for this version
To version 12.1
edited by Pascal Robert
on 2012/08/09 04:59
on 2012/08/09 04:59
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,7 @@ 1 +{{info}} 2 +Work in progress 3 +{{/info}} 4 + 1 1 So far, we have seen two of the technologies, D2W and ERRest, that Project Wonder offers for viewing and managing the data. In this tutorial, we will show how to do it with the "stateful" way of doing things. Stateful have been around since the beginning of WebObjects in 1996, so it's the oldest way of presenting data and constructing pages. 2 2 3 3 Stateful means that you don't have to worry about creating sessions and keeping track of data coming from HTML input fields and controls. In fact, D2W is also stateful. ... ... @@ -235,16 +235,16 @@ 235 235 236 236 {{code}} 237 237 238 -<wo:AjaxUpdateContainer id="main"> 242 + <wo:AjaxUpdateContainer id="main"> 239 239 <wo:if condition="$isLogged"> 240 240 <wo:if condition="$displayGroup.hasMultipleBatches"> 241 241 <div> 242 242 <wo:link action="$displayGroup.displayPreviousBatch">Previous</wo:link> 243 - | Batch 247 + | Batch 244 244 <wo:str value="$displayGroup.currentBatchIndex" /> 245 - of 249 + of 246 246 <wo:str value="$displayGroup.batchCount" /> 247 - | 251 + | 248 248 <wo:link action="$displayGroup.displayNextBatch">Next</wo:link> 249 249 </div> 250 250 </wo:if> ... ... @@ -361,7 +361,7 @@ 361 361 362 362 {{code}} 363 363 364 -<wo:form> 368 + <wo:form> 365 365 <div> 366 366 <label>Title:</label> 367 367 <wo:textfield value="$blogEntry.title" /> ... ... @@ -380,16 +380,16 @@ 380 380 381 381 {{code}} 382 382 383 -public WOActionResults editBlogEntry() { 387 + public WOActionResults editBlogEntry() { 384 384 EditBlogEntry nextPage = pageWithName(EditBlogEntry.class); 385 385 nextPage.setBlogEntry(_blogEntryItem); 386 386 return nextPage; 387 387 } 388 - 392 + 389 389 public WOActionResults createBlogEntry() { 390 390 EditBlogEntry nextPage = pageWithName(EditBlogEntry.class); 391 391 nextPage.setBlogEntry(null); 392 - return nextPage; 396 + return nextPage; 393 393 } 394 394 395 395 {{/code}} ... ... @@ -418,4 +418,4 @@ 418 418 419 419 {{/code}} 420 420 421 -Save everything, run the app, click on the "admin" link, login and check if you can create or edit a blog entry. Everything should be working, and just created your first stateful Project Wonder application [[It's time to deploy an application>>Your First Deployment]].425 +Save everything, run the app, click on the "admin" link, login and check if you can create or edit a blog entry. Everything should be working, and just created your first stateful Project Wonder application!