public abstract class AjaxFormSubmitBehavior extends AjaxEventBehavior
The form must have an id attribute in the markup or have MarkupIdSetter added.
AjaxEventBehavior
,
onSubmit(org.apache.wicket.ajax.AjaxRequestTarget)
,
onAfterSubmit(org.apache.wicket.ajax.AjaxRequestTarget)
,
onError(org.apache.wicket.ajax.AjaxRequestTarget)
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
AjaxFormSubmitBehavior.AjaxFormSubmitter
A publicly reachable class that allows to introspect the submitter, e.g.
|
INDICATOR
INTERFACE
Constructor and Description |
---|
AjaxFormSubmitBehavior(Form<?> form,
String event)
Construct.
|
AjaxFormSubmitBehavior(String event)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Form<?> |
findForm()
Finds form that will be submitted
|
boolean |
getDefaultProcessing() |
Form<?> |
getForm() |
protected void |
onAfterSubmit(AjaxRequestTarget target)
Override this method to provide special submit handling in a multi-button form.
|
protected void |
onError(AjaxRequestTarget target)
Listener method invoked when the form has been processed and errors occurred
|
protected void |
onEvent(AjaxRequestTarget target)
Listener method for the ajax event
|
protected void |
onSubmit(AjaxRequestTarget target)
Override this method to provide special submit handling in a multi-button form.
|
void |
setDefaultProcessing(boolean defaultProcessing) |
protected void |
updateAjaxAttributes(AjaxRequestAttributes attributes)
Gives a chance to the specializations to modify the attributes.
|
getEvent, onCheckEvent, renderHead, respond
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove
public AjaxFormSubmitBehavior(String event)
event
- javascript event this behavior is attached to, like onclickpublic final Form<?> getForm()
protected Form<?> findForm()
null
if none foundprotected void updateAjaxAttributes(AjaxRequestAttributes attributes)
AbstractDefaultAjaxBehavior
updateAjaxAttributes
in class AjaxEventBehavior
protected void onEvent(AjaxRequestTarget target)
AjaxEventBehavior
onEvent
in class AjaxEventBehavior
target
- the current request handlerprotected void onAfterSubmit(AjaxRequestTarget target)
protected void onSubmit(AjaxRequestTarget target)
protected void onError(AjaxRequestTarget target)
target
- public boolean getDefaultProcessing()
true
for default processingButton.getDefaultFormProcessing()
public void setDefaultProcessing(boolean defaultProcessing)
defaultProcessing
- Button.setDefaultFormProcessing(boolean)
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.