Class AjaxParentFormChoiceComponentUpdatingBehavior

java.lang.Object
org.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior
ontopoly.components.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:
  • Field Summary

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

    INDICATOR

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

    INTERFACE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AjaxParentFormChoiceComponentUpdatingBehavior

      public AjaxParentFormChoiceComponentUpdatingBehavior()
  • Method Details

    • 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()