|
||||||||||
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.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(Component component,
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, getChannel, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, throttleScript |
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior |
---|
afterRender, bind, getCallbackUrl, getComponent, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
beforeRender, canCallListenerInterface, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException, unbind |
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(Component component, IHeaderResponse response)
Behavior
renderHead
in interface IComponentAwareHeaderContributor
renderHead
in class AbstractDefaultAjaxBehavior
component
- component which is contributing to the response. This parameter is here to give
the component as the context for component-awares implementing this interfaceresponse
- Response objectBehavior.renderHead(Component,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 |