click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r978887 - in /click/trunk/click/framework/src/org/apache/click: Partial.java util/ClickUtils.java
Date Sat, 24 Jul 2010 15:49:17 GMT
Author: sabob
Date: Sat Jul 24 15:49:16 2010
New Revision: 978887

URL: http://svn.apache.org/viewvc?rev=978887&view=rev
Log:
renamed Partial to ActionResult

Removed:
    click/trunk/click/framework/src/org/apache/click/Partial.java
Modified:
    click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java

Modified: click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java?rev=978887&r1=978886&r2=978887&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java (original)
+++ click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java Sat Jul 24 15:49:16
2010
@@ -60,7 +60,7 @@ import javax.xml.parsers.DocumentBuilder
 import org.apache.click.Context;
 import org.apache.click.Control;
 import org.apache.click.Page;
-import org.apache.click.Partial;
+import org.apache.click.ActionResult;
 import org.apache.click.control.AbstractControl;
 import org.apache.click.control.AbstractLink;
 import org.apache.click.control.ActionLink;
@@ -2086,14 +2086,14 @@ public class ClickUtils {
      *
      * @param target the target object with the method to invoke
      * @param method the name of the method to invoke
-     * @return a Partial response
+     * @return an ActionResult instance
      */
-    public static Partial invokeAction(Object target, String method) {
+    public static ActionResult invokeAction(Object target, String method) {
 
         Object result = invokeMethod(target, method);
 
-        if (result == null || result instanceof Partial) {
-            return (Partial) result;
+        if (result == null || result instanceof ActionResult) {
+            return (ActionResult) result;
 
         } else {
 
@@ -2102,7 +2102,7 @@ public class ClickUtils {
                 targetMethod = target.getClass().getMethod(method);
 
                 String msg =
-                    "Invalid target method, missing Partial return type: "
+                    "Invalid target method, missing ActionResult return type: "
                     + targetMethod;
                 throw new RuntimeException(msg);
             } catch (Exception e) {



Mime
View raw message