org.apache.wicket.ajax.form
Class OnChangeAjaxBehavior
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.AjaxFormComponentUpdatingBehavior
org.apache.wicket.ajax.form.OnChangeAjaxBehavior
- All Implemented Interfaces:
- Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable
public abstract class OnChangeAjaxBehavior
- extends AjaxFormComponentUpdatingBehavior
A behavior that updates the hosting FormComponent
via Ajax when value of the component is
changed.
This behavior uses best available method to track changes on different types of form components.
To accomplish this for text input form components it uses a custom event, named 'inputchange',
that is handled in the best way for the specific browser. For other form component types the
'change' event is used.
- Since:
- 1.3
- Author:
- Janne Hietamäki (janne)
- See Also:
AjaxFormComponentUpdatingBehavior.onUpdate(org.apache.wicket.ajax.AjaxRequestTarget)
,
AjaxFormComponentUpdatingBehavior.onError(org.apache.wicket.ajax.AjaxRequestTarget, RuntimeException)
,
Serialized Form
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVENT_NAME
public static final String EVENT_NAME
- 'inputchange' event delegates to 'input', 'keyup', 'cut' and 'paste' events
for text input form component depending on the browser.
'change' is used as a fallback for all other form component types.
- See Also:
- Constant Field Values
EVENT_INPUTCHANGE
@Deprecated
public static final String EVENT_INPUTCHANGE
- Deprecated.
- See Also:
- Constant Field Values
EVENT_CHANGE
public static final String EVENT_CHANGE
- See Also:
- Constant Field Values
OnChangeAjaxBehavior
public OnChangeAjaxBehavior()
- Constructor.
updateAjaxAttributes
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
- Description copied from class:
AbstractDefaultAjaxBehavior
- Gives a chance to the specializations to modify the attributes.
- Overrides:
updateAjaxAttributes
in class AjaxFormComponentUpdatingBehavior
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.