org.apache.wicket.ajax.form
Class AjaxFormValidatingBehavior
java.lang.Object
org.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.AjaxEventBehavior
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior
- All Implemented Interfaces:
- java.io.Serializable, IBehavior, IBehaviorListener, IClusterable, 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 occurred |
protected void |
onSubmit(AjaxRequestTarget target)
Listener method that is invoked after the form has been submitted and processed without
errors |
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, getAjaxCallDecorator, getCallbackScript, getCallbackScript, getChannelName, getFailureScript, getSuccessScript, onBind, onRequest, renderHead, throttleScript |
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior |
bind, getCallbackUrl, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution |
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 been 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 occurred
- Specified by:
onError
in class AjaxFormSubmitBehavior
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-2010 Apache Software Foundation. All Rights Reserved.