|
||||||||||
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.Component |
---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor<T extends Component>, Component.VisibilityChange |
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, 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. |
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag. |
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 abstract 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, isLinkEnabled, onBeforeRender, onComponentTagBody, setAfterDisabledLink, setBeforeDisabledLink |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getMarkupType, getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, 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 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()
protected abstract void onSubmit(AjaxRequestTarget target, Form<?> form)
target
- form
- protected void onError(AjaxRequestTarget target, Form<?> form)
target
- form
- TODO 1.3: Make abstract to be consistent with onsubmit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |