You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2010/06/30 15:10:19 UTC
svn commit: r959297 -
/click/trunk/click/extras/src/org/apache/click/extras/control/HtmlForm.java
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.
*