click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r959297 - /click/trunk/click/extras/src/org/apache/click/extras/control/HtmlForm.java
Date Wed, 30 Jun 2010 13:10:19 GMT
Author: sabob
Date: Wed Jun 30 13:10:18 2010
New Revision: 959297

URL: http://svn.apache.org/viewvc?rev=959297&view=rev
Log:
removed duplicate onProcess method

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/HtmlForm.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/HtmlForm.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/HtmlForm.java?rev=959297&r1=959296&r2=959297&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/HtmlForm.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/HtmlForm.java Wed Jun 30
13:10:18 2010
@@ -98,51 +98,6 @@ public class HtmlForm extends Form {
     }
 
     /**
-     * @see org.apache.click.Control#onProcess().
-     *
-     * @return true to continue Page event processing or false otherwise
-     */
-    @Override
-    public boolean onProcess() {
-
-        if (getValidate()) {
-            validate();
-
-            // If a POST error occurred exit early.
-            if (hasPostError()) {
-                // Remove exception to ensure other forms on Page do not
-                // validate twice for same error.
-                getContext().getRequest().removeAttribute(
-                    FileUploadService.UPLOAD_EXCEPTION);
-
-                return true;
-            }
-        }
-
-        boolean continueProcessing = true;
-
-        if (isFormSubmission()) {
-
-            if (hasControls()) {
-                for (Iterator it = getControls().iterator(); it.hasNext();) {
-                    Control control = (Control) it.next();
-                    String controlName = control.getName();
-                    if (controlName == null || !controlName.startsWith(SUBMIT_CHECK)) {
-
-                        if (!control.onProcess()) {
-                            continueProcessing = false;
-                        }
-                    }
-                }
-            }
-
-            dispatchActionEvent();
-        }
-
-        return continueProcessing;
-    }
-
-    /**
      * Render the HTML representation of the form and all its child
      * controls to the specified buffer.
      *



Mime
View raw message