Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3275

Log a warn or throw an exception when an AjaxFormComponentUpdatingBehavior is added to an choice component

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.4.14, 1.5-M3
    • 1.4.16, 1.5-RC1
    • wicket
    • None

    Description

      I was thinking about warn on console:

      String.format("AjaxFormComponentUpdatingBehavior is not suposed to be add in the form component %s. AjaxFormChoiceComponentUpdatingBehavior is meant for choices/groups that are not one component in the html but many", getComponent().getPageRelativePath())

      at AjaxFormComponentUpdatingBehavior#bind when we detect that the component is an instance of: RadioChoice, CheckBoxMultipleChoice, RadioGroup, CheckGroup

      Just don't know if it is better throw an exception instead.

      Attachments

        Activity

          People

            pedrosans Pedro Santos
            pedrosans Pedro Santos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: