You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jr...@apache.org on 2011/11/06 03:22:59 UTC
svn commit: r1198119 -
/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/SubmitLink.java
Author: jrthomerson
Date: Sun Nov 6 02:22:59 2011
New Revision: 1198119
URL: http://svn.apache.org/viewvc?rev=1198119&view=rev
Log:
fixes WICKET-4199
Modified:
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/SubmitLink.java
Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/SubmitLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/SubmitLink.java?rev=1198119&r1=1198118&r2=1198119&view=diff
==============================================================================
--- wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/SubmitLink.java (original)
+++ wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/SubmitLink.java Sun Nov 6 02:22:59 2011
@@ -181,11 +181,12 @@ public class SubmitLink extends Abstract
}
/**
- * The javascript which triggers this link.
+ * The JavScript which triggers this link. Method is non-final so that subclasses can decorate
+ * the provided script by wrapping their own JS around a call to super.getTriggerJavaScript().
*
- * @return The javascript
+ * @return The JavaScript to be executed when the link is clicked.
*/
- protected final String getTriggerJavaScript()
+ protected CharSequence getTriggerJavaScript()
{
if (getForm() != null)
{