|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 AjaxFormSubmitBehavior |
newAjaxFormSubmitBehavior(String event)
|
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. |
protected void |
onInitialize()
This method is meant to be used as an alternative to initialize components. |
void |
onSubmit()
Use onSubmit(AjaxRequestTarget, Form) instead. |
protected void |
onSubmit(AjaxRequestTarget target,
Form<?> form)
Override this method to provide special submit handling in a multi-button form. |
protected void |
updateAjaxAttributes(AjaxRequestAttributes attributes)
|
| 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, getWebResponse, getWebSession |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, 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 onInitialize()
ComponentPage thus providing the component with an atomic callback
when the component's environment is built out.
Overrides must call super#Component.onInitialize(). Usually this should be the first thing an
override does, much like a constructor.
Parent containers are guaranteed to be initialized before their children
It is safe to use Component.getPage() in this method
NOTE:The timing of this call is not precise, the contract is that it is called sometime
before Component.onBeforeRender().
onInitialize in class Componentprotected AjaxFormSubmitBehavior newAjaxFormSubmitBehavior(String event)
protected void onSubmit(AjaxRequestTarget target,
Form<?> form)
protected void onAfterSubmit(AjaxRequestTarget target,
Form<?> form)
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
protected void onComponentTag(ComponentTag tag)
Component
onComponentTag in class Componenttag - Tag to modifypublic final void onError()
Button.onError()
protected void onError(AjaxRequestTarget target,
Form<?> form)
Form.onError().
target - form - public final void onSubmit()
onSubmit(AjaxRequestTarget, Form) instead.
public final void onAfterSubmit()
onAfterSubmit(AjaxRequestTarget, Form) instead.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||