|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.Component org.apache.wicket.MarkupContainer org.apache.wicket.markup.html.WebMarkupContainer org.apache.wicket.markup.html.link.AbstractLink org.apache.wicket.markup.html.form.AbstractSubmitLink org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink
public abstract class AjaxSubmitLink
A link that submits a form via ajax. Since this link takes the form as a constructor argument it does not need to be inside form's component hierarchy.
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
AjaxSubmitLink(String id)
Construct. |
|
AjaxSubmitLink(String id,
Form<?> form)
Construct. |
Method Summary | |
---|---|
protected IAjaxCallDecorator |
getAjaxCallDecorator()
Returns the IAjaxCallDecorator that will be used to modify the generated javascript. |
void |
onAfterSubmit()
Use onAfterSubmit(AjaxRequestTarget, Form) instead. |
protected void |
onAfterSubmit(AjaxRequestTarget target,
Form<?> form)
Override this method to provide special submit handling in a multi-button form. |
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag. |
void |
onError()
Final implementation of the Button's onError. |
protected void |
onError(AjaxRequestTarget target,
Form<?> form)
Listener method invoked on form submit with errors. |
void |
onSubmit()
Final implementation of the Button's onSubmit. |
protected void |
onSubmit(AjaxRequestTarget target,
Form<?> form)
Listener method invoked on form submit |
Methods inherited from class org.apache.wicket.markup.html.form.AbstractSubmitLink |
---|
getDefaultFormProcessing, getForm, getInputName, setDefaultFormProcessing |
Methods inherited from class org.apache.wicket.markup.html.link.AbstractLink |
---|
disableLink, getAfterDisabledLink, getBeforeDisabledLink, getBody, isLinkEnabled, onBeforeRender, onComponentTagBody, onDetach, setAfterDisabledLink, setBeforeDisabledLink, setBody |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AjaxSubmitLink(String id)
id
- public AjaxSubmitLink(String id, Form<?> form)
id
- form
- Method Detail |
---|
protected void onAfterSubmit(AjaxRequestTarget target, Form<?> form)
protected IAjaxCallDecorator getAjaxCallDecorator()
IAjaxCallDecorator
that will be used to modify the generated javascript.
This is the preferred way of changing the javascript in the onclick handler
protected void onComponentTag(ComponentTag tag)
Component
onComponentTag
in class Component
tag
- Tag to modifypublic final void onSubmit()
Button.onSubmit()
public final void onError()
Button.onError()
public final void onAfterSubmit()
onAfterSubmit(AjaxRequestTarget, Form)
instead.
protected void onSubmit(AjaxRequestTarget target, Form<?> form)
target
- form
- protected void onError(AjaxRequestTarget target, Form<?> form)
Form.onError()
.
target
- form
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |