struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject svn commit: r123161 - in struts/sandbox/trunk/struts-shale-mailreader: . src/java/org/apache/shale/examples/mailreader
Date Thu, 23 Dec 2004 02:18:50 GMT
Author: craigmcc
Date: Wed Dec 22 18:18:49 2004
New Revision: 123161

URL: http://svn.apache.org/viewcvs?view=rev&rev=123161
Log:
Reflect refinement to the ViewController programming model (new preprocess()
method, prepare() renamed to prerender()).

Modified:
   struts/sandbox/trunk/struts-shale-mailreader/build.xml
   struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Registration.java
   struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Subscription.java

Modified: struts/sandbox/trunk/struts-shale-mailreader/build.xml
Url: http://svn.apache.org/viewcvs/struts/sandbox/trunk/struts-shale-mailreader/build.xml?view=diff&rev=123161&p1=struts/sandbox/trunk/struts-shale-mailreader/build.xml&r1=123160&p2=struts/sandbox/trunk/struts-shale-mailreader/build.xml&r2=123161
==============================================================================
--- struts/sandbox/trunk/struts-shale-mailreader/build.xml	(original)
+++ struts/sandbox/trunk/struts-shale-mailreader/build.xml	Wed Dec 22 18:18:49 2004
@@ -45,7 +45,7 @@
   <property name="commons-beanutils.jar"
                                     value="${jsf.home}/lib/commons-beanutils.jar"/>
   <property name="commons-chain.jar"
-                                    value="${chain.home}/commons-chain.jar"/>
+                                    value="${chain.home}/commons-chain-1.0.jar"/>
   <property name="commons-collections.jar"
                                     value="${jsf.home}/lib/commons-collections.jar"/>
   <property name="commons-digester.jar"

Modified: struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Registration.java
Url: http://svn.apache.org/viewcvs/struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Registration.java?view=diff&rev=123161&p1=struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Registration.java&r1=123160&p2=struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Registration.java&r2=123161
==============================================================================
--- struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Registration.java
(original)
+++ struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Registration.java
Wed Dec 22 18:18:49 2004
@@ -269,13 +269,11 @@
      * table, so that the correct row can be positioned to before calling
      * the event handler.</p>
      */
-    public void init() {
+    public void preprocess() {
 
-        if (isPostBack()) {
-            State state = getState();
-            if ("EDIT".equals(state.getMode())) {
-                setSubscriptions(state.getUser().getSubscriptions());
-            }
+        State state = getState();
+        if ("EDIT".equals(state.getMode())) {
+            setSubscriptions(state.getUser().getSubscriptions());
         }
 
     }
@@ -288,7 +286,7 @@
      * subscriptions for the currently logged in user.  (If this is a
      * postback, we will have done this already in <code>init()</code>.)</p>
      */
-    public void prepare() {
+    public void prerender() {
 
         State state = getState();
 
@@ -308,7 +306,8 @@
             setReplyToAddress(user.getReplyToAddress());
         }
 
-        // Look up the subscriptions for the currently logged on user.
+        // Look up the subscriptions for the currently logged on user,
+        // if we have not done so already.
         // If we were using a real database, this is where executing the
         // query and opening the result set would occur
         if (!isPostBack()) {

Modified: struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Subscription.java
Url: http://svn.apache.org/viewcvs/struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Subscription.java?view=diff&rev=123161&p1=struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Subscription.java&r1=123160&p2=struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Subscription.java&r2=123161
==============================================================================
--- struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Subscription.java
(original)
+++ struts/sandbox/trunk/struts-shale-mailreader/src/java/org/apache/shale/examples/mailreader/Subscription.java
Wed Dec 22 18:18:49 2004
@@ -180,7 +180,7 @@
      * <p>If this is not a postack, and we are in DELETE or EDIT mode,
      * prepopulate the field values for the subscription update form.</p>
      */
-    public void prepare() {
+    public void prerender() {
 
         State state = getState();
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message