Author: ivaynberg
Date: Thu Jan  4 13:30:33 2007
New Revision: 492755

URL: http://svn.apache.org/viewvc?view=rev&rev=492755
Log:
extra constructor

Modified:
    
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/form/AjaxFormSubmitBehavior.java

Modified: 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/form/AjaxFormSubmitBehavior.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/form/AjaxFormSubmitBehavior.java?view=diff&rev=492755&r1=492754&r2=492755
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/form/AjaxFormSubmitBehavior.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/form/AjaxFormSubmitBehavior.java
 Thu Jan  4 13:30:33 2007
@@ -49,6 +49,17 @@
 
        private Form form;
 
+       /**
+        * Constructor. This constructor can only be used when the component 
this
+        * behavior is attached to is inside a form.
+        * 
+        * @param event
+        *            javascript event this behavior is attached to, like 
onclick
+        */
+       public AjaxFormSubmitBehavior(String event)
+       {
+               this(null, event);
+       }
 
        /**
         * Construct.


Reply via email to