You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2007/09/07 17:14:55 UTC

svn commit: r573604 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxFallbackButton.java

Author: ivaynberg
Date: Fri Sep  7 08:14:50 2007
New Revision: 573604

URL: http://svn.apache.org/viewvc?rev=573604&view=rev
Log:
onsubmit() should have been final!

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxFallbackButton.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxFallbackButton.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxFallbackButton.java?rev=573604&r1=573603&r2=573604&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxFallbackButton.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxFallbackButton.java Fri Sep  7 08:14:50 2007
@@ -25,8 +25,8 @@
 import org.apache.wicket.util.string.AppendingStringBuffer;
 
 /**
- * An ajax submit button that will degrade to a normal request if ajax is not
- * available or javascript is disabled.
+ * An ajax submit button that will degrade to a normal request if ajax is not available or
+ * javascript is disabled.
  * 
  * @since 1.3
  * 
@@ -107,7 +107,7 @@
 	/**
 	 * @see org.apache.wicket.markup.html.form.IFormSubmittingComponent#onSubmit()
 	 */
-	public void onSubmit()
+	public final void onSubmit()
 	{
 		if (!(getRequestCycle().getRequestTarget() instanceof AjaxRequestTarget))
 		{
@@ -121,12 +121,11 @@
 	}
 
 	/**
-	 * Callback for the onClick event. If ajax failed and this event was
-	 * generated via a normal submission, the target argument will be null
+	 * Callback for the onClick event. If ajax failed and this event was generated via a normal
+	 * submission, the target argument will be null
 	 * 
 	 * @param target
-	 *            ajax target if this linked was invoked using ajax, null
-	 *            otherwise
+	 *            ajax target if this linked was invoked using ajax, null otherwise
 	 * @param form
 	 */
 	protected abstract void onSubmit(final AjaxRequestTarget target, final Form form);
@@ -137,8 +136,8 @@
 	}
 
 	/**
-	 * Helper methods that both checks whether the link is enabled and whether
-	 * the action ENABLE is allowed.
+	 * Helper methods that both checks whether the link is enabled and whether the action ENABLE is
+	 * allowed.
 	 * 
 	 * @return whether the link should be rendered as enabled
 	 */