Author: jrthomerson
Date: Tue Apr 20 20:38:47 2010
New Revision: 936053

URL: http://svn.apache.org/viewvc?rev=936053&view=rev
Log:
fixes WICKET-2837

Modified:
    
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitLink.java

Modified: 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitLink.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitLink.java?rev=936053&r1=936052&r2=936053&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitLink.java
 (original)
+++ 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitLink.java
 Tue Apr 20 20:38:47 2010
@@ -28,34 +28,6 @@ import org.apache.wicket.util.string.App
  * A link that submits a form via ajax. Since this link takes the form as a 
constructor argument it
  * does not need to be inside form's component hierarchy.
  * 
- * <p/>
- * It works by splitting the javascript/Ajax calls from the normal non-ajax 
requests by generating:
- * 
- * <pre>
- * &lt;a href=&quot;normal action url&quot; onclick=&quot;ajax javascript 
script; return
- * false;&quot;&gt;link&lt;/a&gt;
- * </pre>
- * 
- * If/when javascript is turned off in the browser, or it doesn't support 
javascript, then the
- * browser will not respond to the onclick event, using the href directly. 
Wicket will then use a
- * normal request target, and call the serverside onClick with a null 
{...@link AjaxRequestTarget}.
- * 
- * If javascript is enabled, Wicket will send an ajax request, and process it 
serverside with an
- * {...@link AjaxRequestTarget} that is supplied to the server-side onClick 
method. The "return false"
- * in the &lt;a href&gt; onclick handler ensures the browser doesn't perform 
the normal request too.
- * 
- * The latter is nicely illustrated with this:
- * 
- * <pre>
- * &lt;a href=&quot;javascript:alert('href event handler');&quot;
- * onclick=&quot;alert('onclick event handler');&quot;&gt;clicking me gives two
- * alerts&lt;/a&gt;
- * 
- * &lt;a href=&quot;javascript:alert('href event handler');&quot;
- * onclick=&quot;alert('onclick event handler');return 
false;&quot;&gt;clicking me
- * gives only one alert&lt;/a&gt;
- * </pre>
- * 
  * @since 1.2
  * 
  * @author Igor Vaynberg (ivaynberg)


Reply via email to