org.apache.wicket.ajax.form
Class AjaxFormChoiceComponentUpdatingBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.apache.wicket.ajax.AjaxEventBehavior
                  extended by org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior
                      extended by org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior
All Implemented Interfaces:
Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable

public abstract class AjaxFormChoiceComponentUpdatingBehavior
extends AjaxFormComponentUpdatingBehavior

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

Author:
jcompagner
See Also:
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()
          Construct.
 
Method Summary
protected  void checkComponent(FormComponent<?> component)
          Check the component this behavior is bound to.
protected  void onBind()
          Subclasses should call super.onBind()
 void renderHead(Component component, IHeaderResponse response)
          Render to the web response whatever the component wants to contribute to the head section.
protected  void updateAjaxAttributes(AjaxRequestAttributes attributes)
          Gives a chance to the specializations to modify the attributes.
 
Methods inherited from class org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior
disableFocusOnBlur, getFormComponent, getUpdateModel, onError, onEvent, onUpdate
 
Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior
getEvent, onCheckEvent, respond
 
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, onUnbind, unbind
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxFormChoiceComponentUpdatingBehavior

public AjaxFormChoiceComponentUpdatingBehavior()
Construct.

Method Detail

renderHead

public void renderHead(Component component,
                       IHeaderResponse response)
Description copied from class: Behavior
Render to the web response whatever the component wants to contribute to the head section.

Specified by:
renderHead in interface IComponentAwareHeaderContributor
Overrides:
renderHead in class AjaxEventBehavior
Parameters:
component - component which is contributing to the response. This parameter is here to give the component as the context for component-awares implementing this interface
response - Response object
See Also:
Behavior.renderHead(Component, org.apache.wicket.markup.head.IHeaderResponse)

updateAjaxAttributes

protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
Description copied from class: AbstractDefaultAjaxBehavior
Gives a chance to the specializations to modify the attributes.

Overrides:
updateAjaxAttributes in class AjaxFormComponentUpdatingBehavior

onBind

protected void onBind()
Description copied from class: AbstractDefaultAjaxBehavior
Subclasses should call super.onBind()

Overrides:
onBind in class AjaxFormComponentUpdatingBehavior
See Also:
AbstractAjaxBehavior.onBind()

checkComponent

protected void checkComponent(FormComponent<?> component)
Description copied from class: AjaxFormComponentUpdatingBehavior
Check the component this behavior is bound to.

Logs a warning in development mode when an AjaxFormChoiceComponentUpdatingBehavior should be used.

Overrides:
checkComponent in class AjaxFormComponentUpdatingBehavior
Parameters:
component - bound component


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.