org.apache.wicket.ajax.form
Class AjaxFormValidatingBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
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:
- Serializable, IBehaviorListener, IClusterable, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor
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
| Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, getAjaxCallDecorator, getCallbackScript, getChannel, getChannelName, getFailureScript, getSuccessScript, onBind, onRequest, renderHead, throttleScript |
AjaxFormValidatingBehavior
public AjaxFormValidatingBehavior(Form<?> form,
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
- Overrides:
onSubmit in class AjaxFormSubmitBehavior
- See Also:
AjaxFormSubmitBehavior.onSubmit(org.apache.wicket.ajax.AjaxRequestTarget)
onError
protected void onError(AjaxRequestTarget target)
- Description copied from class:
AjaxFormSubmitBehavior
- Listener method invoked when the form has been processed and errors occurred. This method is
called before
Form.onError().
- Overrides:
onError in class AjaxFormSubmitBehavior
- See Also:
AjaxFormSubmitBehavior.onError(org.apache.wicket.ajax.AjaxRequestTarget)
addToAllFormComponents
public static void addToAllFormComponents(Form<?> form,
String event)
- Adds this behavior to all form components of the specified form
- Parameters:
form - event -
addToAllFormComponents
public static void addToAllFormComponents(Form<?> form,
String event,
Duration throttleDelay)
- Adds this behavior to all form components of the specified form
- Parameters:
form - event - throttleDelay -
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.