Author: mgrigorov
Date: Sun Jul 25 16:33:33 2010
New Revision: 979064
URL: http://svn.apache.org/viewvc?rev=979064&view=rev
Log:
WICKET-2924 Duplicated method implementation setDefaultFormProcessing for
AbstarctSubmitLink and Button.
Add setDefaultFormProcessing(boolean) to IFormSubmittingComponent
Fix javadocs
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractSubmitLink.java
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/IFormSubmittingComponent.java
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractSubmitLink.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractSubmitLink.java?rev=979064&r1=979063&r2=979064&view=diff
==============================================================================
---
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractSubmitLink.java
(original)
+++
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractSubmitLink.java
Sun Jul 25 16:33:33 2010
@@ -94,7 +94,7 @@ public abstract class AbstractSubmitLink
/**
* Sets the defaultFormProcessing property. When false (default is
true), all validation and
- * formupdating is bypassed and the onSubmit method of that button is
called directly, and the
+ * form updating is bypassed and the onSubmit method of that button is
called directly, and the
* onSubmit method of the parent form is not called. A common use for
this is to create a cancel
* button.
*
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/IFormSubmittingComponent.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/IFormSubmittingComponent.java?rev=979064&r1=979063&r2=979064&view=diff
==============================================================================
---
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/IFormSubmittingComponent.java
(original)
+++
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/IFormSubmittingComponent.java
Sun Jul 25 16:33:33 2010
@@ -16,6 +16,8 @@
*/
package org.apache.wicket.markup.html.form;
+import org.apache.wicket.Component;
+
/**
* Interface that must be implemented by components that are able to submit
form.
*
@@ -25,7 +27,7 @@ public interface IFormSubmittingComponen
{
/**
* Returns whether form should be processed the default way. When false
(default is true), all
- * validation and formupdating is bypassed and the onSubmit method of
that button is called
+ * validation and form updating is bypassed and the onSubmit method of
that button is called
* directly, and the onSubmit method of the parent form is not called.
A common use for this is
* to create a cancel button.
*
@@ -34,6 +36,17 @@ public interface IFormSubmittingComponen
boolean getDefaultFormProcessing();
/**
+ * Sets the defaultFormProcessing property. When false (default is
true), all validation and
+ * form updating is bypassed and the onSubmit method of that button is
called directly, and the
+ * onSubmit method of the parent form is not called. A common use for
this is to create a cancel
+ * button.
+ *
+ * @param defaultFormProcessing
+ * @return {...@code this} component
+ */
+ Component setDefaultFormProcessing(boolean defaultFormProcessing);
+
+ /**
* Returns the form this component submits.
*
* @return form submitted by this component