wicket.ajax.form
Class AjaxFormValidatingBehavior
java.lang.Object
wicket.behavior.AbstractBehavior
wicket.behavior.AbstractAjaxBehavior
wicket.ajax.AbstractDefaultAjaxBehavior
wicket.ajax.AjaxEventBehavior
wicket.ajax.form.AjaxFormSubmitBehavior
wicket.ajax.form.AjaxFormValidatingBehavior
- All Implemented Interfaces:
- java.io.Serializable, IBehavior, IBehaviorListener, IRequestListener, IHeaderContributor
public class AjaxFormValidatingBehavior
- extends AjaxFormSubmitBehavior
Ajax event behavior that submits the form and updates all form feedback
panels on the page. Useful for providing instant feedback.
- Since:
- 1.2
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
|
Method Summary |
static void |
addToAllFormComponents(Form form,
java.lang.String event)
Adds this behavior to all form components of the specified form |
static void |
addToAllFormComponents(Form form,
java.lang.String event,
Duration throttleDelay)
Adds this behavior to all form components of the specified form |
protected void |
onError(AjaxRequestTarget target)
Listener method invoked when the form has been processed and errors
occured |
protected void |
onSubmit(AjaxRequestTarget target)
Listener method that is invoked after the form has ben submitted and
processed without errors |
| Methods inherited from class wicket.behavior.AbstractAjaxBehavior |
bind, cleanup, getCallbackUrl, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onRendered, onRenderHeadContribution, renderHead, writeJsReference, writeJsReference |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxFormValidatingBehavior
public AjaxFormValidatingBehavior(Form form,
java.lang.String event)
- Construct.
- Parameters:
form - form that will be submitted via ajaxevent - javascript event this behavior will be invoked on, like
onclick
onSubmit
protected void onSubmit(AjaxRequestTarget target)
- Description copied from class:
AjaxFormSubmitBehavior
- Listener method that is invoked after the form has ben submitted and
processed without errors
- Specified by:
onSubmit in class AjaxFormSubmitBehavior
onError
protected void onError(AjaxRequestTarget target)
- Description copied from class:
AjaxFormSubmitBehavior
- Listener method invoked when the form has been processed and errors
occured
- Overrides:
onError in class AjaxFormSubmitBehavior
- Parameters:
target - TODO 1.3: make abstract to be consistent with onsubmit()
addToAllFormComponents
public static void addToAllFormComponents(Form form,
java.lang.String event)
- Adds this behavior to all form components of the specified form
- Parameters:
form - event -
addToAllFormComponents
public static void addToAllFormComponents(Form form,
java.lang.String event,
Duration throttleDelay)
- Adds this behavior to all form components of the specified form
- Parameters:
form - event - throttleDelay -
Copyright © 2004-2007 Wicket developers. All Rights Reserved.