public class StatelessOnChangeAjaxBehavior extends StatelessAjaxFormComponentUpdatingBehavior
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.
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_CHANGE |
static String |
EVENT_NAME
'inputchange' event delegates to 'input', 'keyup', 'cut' and 'paste' events
for text input form component depending on the browser.
|
Constructor and Description |
---|
StatelessOnChangeAjaxBehavior() |
Modifier and Type | Method and Description |
---|---|
protected void |
onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target) |
protected void |
updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes) |
getCallbackUrl, getPageParameters, getStatelessHint, onBind
checkComponent, disableFocusOnBlur, getFormComponent, getUpdateModel, onError, onEvent
getEvent, onCheckEvent, renderHead, respond
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
afterRender, bind, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
public static final String EVENT_NAME
public static final String EVENT_CHANGE
protected void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
updateAjaxAttributes
in class org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior
protected void onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target)
onUpdate
in class org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior
Copyright © 2015. All rights reserved.