Class AjaxParentFormChoiceComponentUpdatingBehavior

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IHeaderContributor

    public abstract class AjaxParentFormChoiceComponentUpdatingBehavior
    extends org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior
    This is variant of AjaxFormChoiceComponentUpdatingBehavior that allows nested AjaxParentRadioChild and AjaxParentCheckChild instances to update the parent RadioGroup or CheckGroup. This is neccessary when any children of the group gets replaced using AJAX. This is done to work around a limitation of the AjaxFormChoiceComponentUpdatingBehavior class, which does not allow form choice children components to be replaced/added via AJAX.
    Author:
    grove
    See Also:
    and AjaxParentCheckChild, Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

        INDICATOR
      • Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener

        INTERFACE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CharSequence getCallbackFunction()  
      void renderHead​(org.apache.wicket.markup.html.IHeaderResponse response)  
      • Methods inherited from class org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior

        getEventHandler, getFormComponent, onBind, onError, onUpdate, respond
      • 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, onException, rendered
    • Constructor Detail

      • AjaxParentFormChoiceComponentUpdatingBehavior

        public AjaxParentFormChoiceComponentUpdatingBehavior()
    • Method Detail

      • renderHead

        public void renderHead​(org.apache.wicket.markup.html.IHeaderResponse response)
        Specified by:
        renderHead in interface org.apache.wicket.markup.html.IHeaderContributor
        Overrides:
        renderHead in class org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior
      • getCallbackFunction

        public CharSequence getCallbackFunction()