List of usage examples for org.apache.wicket.ajax.attributes AjaxRequestAttributes setEventNames
public AjaxRequestAttributes setEventNames(String... eventNames)
From source file:org.efaps.ui.wicket.components.form.command.AjaxCmdBehavior.java
License:Apache License
@Override protected void updateAjaxAttributes(final AjaxRequestAttributes _attributes) { super.updateAjaxAttributes(_attributes); _attributes.setEventNames(new String[] {}); }
From source file:org.wicketstuff.stateless.behaviors.StatelessOnChangeAjaxBehavior.java
License:Apache License
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); Component component = getComponent(); // textfiels and textareas will trigger this behavior with either 'inputchange' or 'change' events // all the other components will use just 'change' if (!(component instanceof TextField || component instanceof TextArea)) { attributes.setEventNames(EVENT_CHANGE); }/* ww w .j a va2s . c o m*/ ; }