click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r759500 - /incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java
Date Sat, 28 Mar 2009 16:24:35 GMT
Author: sabob
Date: Sat Mar 28 16:24:35 2009
New Revision: 759500

URL: http://svn.apache.org/viewvc?rev=759500&view=rev
Log:
FieldSet should let child controls invoke the canProcess check. CLK-508

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java?rev=759500&r1=759499&r2=759500&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java Sat Mar
28 16:24:35 2009
@@ -746,17 +746,15 @@
      * returned false
      */
     public boolean onProcess() {
-        if (canProcess()) {
-            if (hasControls()) {
-                for (Iterator it = getControls().iterator(); it.hasNext();) {
-                    Control control = (Control) it.next();
-                    String controlName = control.getName();
-                    if (controlName == null || !controlName.startsWith(
-                        Form.SUBMIT_CHECK)) {
-                        boolean continueProcessing = control.onProcess();
-                        if (!continueProcessing) {
-                            return false;
-                        }
+        if (hasControls()) {
+            for (Iterator it = getControls().iterator(); it.hasNext();) {
+                Control control = (Control) it.next();
+                String controlName = control.getName();
+                if (controlName == null || !controlName.startsWith(
+                    Form.SUBMIT_CHECK)) {
+                    boolean continueProcessing = control.onProcess();
+                    if (!continueProcessing) {
+                        return false;
                     }
                 }
             }



Mime
View raw message