|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 AjaxFormComponentUpdatingBehavior 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 Form| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
|---|
INDICATOR |
| Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener |
|---|
INTERFACE |
| Constructor Summary | |
|---|---|
AjaxFormChoiceComponentUpdatingBehavior()
|
|
| Method Summary | |
|---|---|
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)
|
protected void |
updateAjaxAttributes(AjaxRequestAttributes attributes)
Gives a chance to the specializations to modify the attributes. |
| Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
|---|
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes |
| Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior |
|---|
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag |
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
beforeRender, canCallListenerInterface, detach, getStatelessHint, 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 IComponentAwareHeaderContributorrenderHead in class AbstractDefaultAjaxBehaviorcomponent - 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.head.IHeaderResponse)protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
AbstractDefaultAjaxBehavior
updateAjaxAttributes in class AbstractDefaultAjaxBehaviorprotected abstract void onUpdate(AjaxRequestTarget target)
target - the current request handler
protected void onError(AjaxRequestTarget target,
RuntimeException e)
onUpdate(org.apache.wicket.ajax.AjaxRequestTarget) will not be caught here.
The RuntimeException will be null if it was just a validation or conversion error of the
FormComponent
target - the current request handlere - the error that occurred while updating the componentprotected void onBind()
AbstractDefaultAjaxBehavior
onBind in class AbstractDefaultAjaxBehaviorAbstractAjaxBehavior.onBind()protected final FormComponent<?> getFormComponent()
protected final void respond(AjaxRequestTarget target)
respond in class AbstractDefaultAjaxBehaviortarget - 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 | |||||||||