click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r767065 - in /incubator/click/trunk/click: framework/src/org/apache/click/ClickServlet.java framework/src/org/apache/click/ControlRegistry.java mock/src/org/apache/click/MockContext.java
Date Tue, 21 Apr 2009 08:17:41 GMT
Author: sabob
Date: Tue Apr 21 08:17:41 2009
New Revision: 767065

URL: http://svn.apache.org/viewvc?rev=767065&view=rev
Log:
added a default method for firing action events

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/ClickServlet.java
    incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java
    incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/ClickServlet.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/ClickServlet.java?rev=767065&r1=767064&r2=767065&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/ClickServlet.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/ClickServlet.java Tue Apr 21
08:17:41 2009
@@ -1483,8 +1483,7 @@
 
             if (continueProcessing) {
                 // Fire registered action events for the POST_PROCSESS phase
-                continueProcessing = controlRegistry.fireActionEvents(context,
-                    ControlRegistry.POST_ON_PROCESS_EVENT);
+                continueProcessing = controlRegistry.fireActionEvents(context);
 
                 if (logger.isTraceEnabled()) {
                     String msg = "   invoked: Control listeners : "

Modified: incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java?rev=767065&r1=767064&r2=767065&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java Tue Apr
21 08:17:41 2009
@@ -220,6 +220,20 @@
     }
 
     /**
+     * Fire all the registered action events after the Page Controls have been
+     * processed and return true if the page should continue processing.
+     * <p/>
+     * @see #fireActionEvents(org.apache.click.Context, int)
+     *
+     * @param context the request context
+     *
+     * @return true if the page should continue processing or false otherwise
+     */
+    boolean fireActionEvents(Context context) {
+        return fireActionEvents(context, ControlRegistry.POST_ON_PROCESS_EVENT);
+    }
+
+    /**
      * Fire all the registered action events for the specified event and return
      * true if the page should continue processing.
      *

Modified: incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java?rev=767065&r1=767064&r2=767065&view=diff
==============================================================================
--- incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java (original)
+++ incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java Tue Apr 21 08:17:41
2009
@@ -297,8 +297,7 @@
      */
     public boolean fireActionEventsAndClearRegistry() {
         ControlRegistry controlRegistry = ControlRegistry.getThreadLocalRegistry();
-        boolean continueProcessing = controlRegistry.fireActionEvents(this,
-            ControlRegistry.POST_ON_PROCESS_EVENT);
+        boolean continueProcessing = controlRegistry.fireActionEvents(this);
 
         controlRegistry.clearRegistry();
         return continueProcessing;



Mime
View raw message