|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior
public abstract class AjaxFormChoiceComponentUpdatingBehavior
This is a Ajax Component Update Behavior that is meant for choices/groups that are not one component in the html but many.
Use the normal AjaxFormChoiceComponentUpdatingBehavior
for the normal single component
fields
In order to be supported by this behavior the group components must output children with markup id in format of 'groupId-childId'
RadioChoice
,
CheckBoxMultipleChoice
,
RadioGroup
,
CheckGroup
,
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 | |
---|---|
AjaxFormChoiceComponentUpdatingBehavior()
Default constructor |
Method Summary | |
---|---|
protected CharSequence |
getEventHandler()
|
protected FormComponent<?> |
getFormComponent()
|
protected void |
onBind()
Subclasses should call super.onBind() |
protected void |
onError(AjaxRequestTarget target,
RuntimeException e)
Called to handle any error resulting from updating form component. |
protected abstract void |
onUpdate(AjaxRequestTarget target)
Listener invoked on the ajax request. |
void |
renderHead(IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section. |
protected void |
respond(AjaxRequestTarget target)
|
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
---|
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getCallbackScript, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, throttleScript |
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior |
---|
bind, getCallbackUrl, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution |
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
---|
afterRender, beforeRender, cleanup, detach, detachModel, exception, isEnabled, isTemporary, onConfigure, onException, rendered |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AjaxFormChoiceComponentUpdatingBehavior()
Method Detail |
---|
public void renderHead(IHeaderResponse response)
IHeaderContributor
renderHead
in interface IHeaderContributor
renderHead
in class AbstractDefaultAjaxBehavior
response
- Response objectAbstractDefaultAjaxBehavior.renderHead(org.apache.wicket.markup.html.IHeaderResponse)
protected abstract void onUpdate(AjaxRequestTarget target)
target
- protected void onError(AjaxRequestTarget target, RuntimeException e)
onUpdate(AjaxRequestTarget)
will not be caught here.
The RuntimeException will be null if it was just a validation or conversion error of the
FormComponent
target
- e
- protected void onBind()
AbstractDefaultAjaxBehavior
onBind
in class AbstractDefaultAjaxBehavior
AbstractAjaxBehavior.onBind()
protected final FormComponent<?> getFormComponent()
protected final CharSequence getEventHandler()
protected final void respond(AjaxRequestTarget target)
respond
in class AbstractDefaultAjaxBehavior
target
- The AJAX targetAbstractDefaultAjaxBehavior.respond(org.apache.wicket.ajax.AjaxRequestTarget)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |