AjaxFormChoiceComponentUpdatingBehavior affects checkboxes even if component
uses radios and vice-versa
-------------------------------------------------------------------------------------------------------
Key: WICKET-1677
URL: https://issues.apache.org/jira/browse/WICKET-1677
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.3.3
Reporter: Willis Boyce
I have a form with two radio buttons. Depending which radio the user selects,
I show one form or another form. I'm using an
AjaxFormChoiceComponentUpdatingBehavior attached to the RadioGroup. One of the
forms has a checkbox. The checkbox triggers an ajax update--even though the
AjaxFormChoiceComponentUpdatingBehavior is attached to a RadioGroup.
AjaxFormChoiceComponentUpdatingBehavior should only affect the appropriate
controls based on whether it is attached to a choice component that uses radios
or checkboxes. If a developer really wants both, then he can use two
AjaxFormChoiceComponentUpdatingBehavior instances.
I've attached a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.