|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public abstract class AjaxFormSubmitBehavior
Ajax event behavior that submits a form via ajax when the event it is attached to, is invoked.
The form must have an id attribute in the markup or have MarkupIdSetter added.
AjaxEventBehavior
,
Serialized FormField Summary |
---|
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
---|
INDICATOR |
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener |
---|
INTERFACE |
Constructor Summary | |
---|---|
AjaxFormSubmitBehavior(Form<?> form,
String event)
Construct. |
|
AjaxFormSubmitBehavior(String event)
Constructor. |
Method Summary | |
---|---|
protected Form<?> |
findForm()
Finds form that will be submitted |
boolean |
getDefaultProcessing()
|
Form<?> |
getForm()
|
protected CharSequence |
getPreconditionScript()
Deprecated. |
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. |
Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior |
---|
getEvent, onCheckEvent, renderHead, respond |
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
---|
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getSuccessScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes |
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior |
---|
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AjaxFormSubmitBehavior(String event)
event
- javascript event this behavior is attached to, like onclickpublic AjaxFormSubmitBehavior(Form<?> form, String event)
form
- form that will be submittedevent
- javascript event this behavior is attached to, like onclickMethod Detail |
---|
public 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 handlerAjaxEventBehavior.onEvent(org.apache.wicket.ajax.AjaxRequestTarget)
protected void onAfterSubmit(AjaxRequestTarget target)
protected void onSubmit(AjaxRequestTarget target)
protected void onError(AjaxRequestTarget target)
target
- @Deprecated protected CharSequence getPreconditionScript()
getPreconditionScript
in class AbstractDefaultAjaxBehavior
AbstractDefaultAjaxBehavior.getPreconditionScript()
public boolean getDefaultProcessing()
true
for default processingButton.getDefaultFormProcessing()
public void setDefaultProcessing(boolean defaultProcessing)
defaultProcessing
- Button.setDefaultFormProcessing(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |