[
https://issues.apache.org/jira/browse/WICKET-5255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13694600#comment-13694600
]
Martin Grigorov commented on WICKET-5255:
-----------------------------------------
I've looked at this for few hours and I find it hard to refactor.
The XyzGroup is used to get the inputName. This works stable with
FormComponent#getInputName() but now it has to do this manually since there is
no component path.
Same is valid for anything else related to FormComponent - reading rawInput,
comparing models, etc.
At the moment XyzGroups are IOnChangeListener - this will have to be reworked
too because it won't work for non-components.
> Make RadioGroup and CheckGroup non-components
> ---------------------------------------------
>
> Key: WICKET-5255
> URL: https://issues.apache.org/jira/browse/WICKET-5255
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 7.0.0
> Reporter: Martin Grigorov
> Fix For: 7.0.0
>
>
> Description of the task by Igor Vaynberg:
> the basic idea is to make
> CheckGroup and RadioGroup non-components because in a lot of cases it
> is inconvenient to have them wrap some sections. eg when you have two
> check groups you have to put one inside the other, which is
> non-intuitive. so the groups are linked by the instance of CheckGroup
> and RadioGroup objects which can take care of generating unique ids,
> etc.
> so instead of code like this:
> RadioGroup group=new RadioGroup();
> add(group);
> group.add(new Radio());
> we would have
> RadioGroup group=new RadioGroup();
> add(new Radio("id", group));
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira