click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r947361 - in /click/trunk/click/examples/src/org/apache/click/examples/page/pageflow: NextPage.java StartPage.java
Date Sun, 23 May 2010 05:32:39 GMT
Author: sabob
Date: Sun May 23 05:32:39 2010
New Revision: 947361

URL: http://svn.apache.org/viewvc?rev=947361&view=rev
Log:
CLK-609

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/NextPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/StartPage.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/NextPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/NextPage.java?rev=947361&r1=947360&r2=947361&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/NextPage.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/NextPage.java Sun
May 23 05:32:39 2010
@@ -81,8 +81,7 @@ public class NextPage extends BorderPage
     }
 
     public boolean onBackClick() {
-        StartPage startPage =
-            (StartPage) getContext().createPage(StartPage.class);
+        StartPage startPage = getContext().createPage(StartPage.class);
 
         courseBooking = (CourseBooking) courseField.getValueObject();
         startPage.setCourseBooking(courseBooking);

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/StartPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/StartPage.java?rev=947361&r1=947360&r2=947361&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/StartPage.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/StartPage.java
Sun May 23 05:32:39 2010
@@ -145,7 +145,7 @@ public class StartPage extends BorderPag
             courseBooking.setCourseType(courseSelect.getValue());
             courseBooking.setBookingNotes(notesField.getValue());
 
-            NextPage nextPage = (NextPage) getContext().createPage(NextPage.class);
+            NextPage nextPage = getContext().createPage(NextPage.class);
             nextPage.setCourseBooking(courseBooking);
 
             setForward(nextPage);



Mime
View raw message