shale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject svn commit: r426737 - in /shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa: Detail.java Master.java
Date Sat, 29 Jul 2006 01:39:42 GMT
Author: craigmcc
Date: Fri Jul 28 18:39:41 2006
New Revision: 426737

URL: http://svn.apache.org/viewvc?rev=426737&view=rev
Log:
Add some debug logging to verify that the view controller lifecycle methods
only get called once now.

Modified:
    shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Detail.java
    shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Master.java

Modified: shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Detail.java
URL: http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Detail.java?rev=426737&r1=426736&r2=426737&view=diff
==============================================================================
--- shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Detail.java
(original)
+++ shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Detail.java
Fri Jul 28 18:39:41 2006
@@ -211,6 +211,8 @@
      */
     public void init() {
 
+        log("Detail.init(" + isPostBack() + ")");
+
         String id = getRequestParameter("id");
         if (id != null) {
             try {
@@ -234,6 +236,8 @@
      */
     public void preprocess() {
 
+        log("Detail.preprocess(" + isPostBack() + ")");
+
         String mode = (String) retrieveData(MODE_KEY);
         if (mode != null) {
             setMode(mode);
@@ -255,6 +259,8 @@
      */
     public void prerender() {
 
+        log("Detail.prerender(" + isPostBack() + ")");
+
         // Create a new user instance if necessary (i.e. we navigated
         // to this page directly, or we are in CREATE mode)
         if (getSubscription() == null) {
@@ -272,6 +278,8 @@
      * <p>Release resources used during this request.</p>
      */
     public void destroy() {
+
+        log("Detail.destroy(" + isPostBack() + ")");
 
         ; // FIXME - destroy()
 

Modified: shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Master.java
URL: http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Master.java?rev=426737&r1=426736&r2=426737&view=diff
==============================================================================
--- shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Master.java
(original)
+++ shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/java/org/apache/shale/examples/mailreaderjpa/Master.java
Fri Jul 28 18:39:41 2006
@@ -195,6 +195,8 @@
      */
     public void init() {
 
+        log("Master.init(" + isPostBack() + ")");
+
         String mode = getRequestParameter("mode");
         if ((mode != null) && (mode.length() > 0)) {
             setMode(mode);
@@ -209,6 +211,8 @@
      */
     public void preprocess() {
 
+        log("Master.preprocess(" + isPostBack() + ")");
+
         String mode = (String) retrieveData(MODE_KEY);
         if (mode != null) {
             setMode(mode);
@@ -230,6 +234,8 @@
      */
     public void prerender() {
 
+        log("Master.prerender(" + isPostBack() + ")");
+
         // Create a new user instance if necessary (i.e. we navigated
         // to this page directly, or we are in CREATE mode)
         if (getUser() == null) {
@@ -247,6 +253,8 @@
      * <p>Release resources used during this request.</p>
      */
     public void destroy() {
+
+        log("Master.destroy(" + isPostBack() + ")");
 
         ; // FIXME - destroy()
 



Mime
View raw message