Hello there, mighty developers. 
I'm quite new in Wicket, so beforehand sorry if my question is stupid.
So what i have is a RadioGroup, with some childs. When page loads for the
first time, 
one of child gets selected by default, and everything is fine. But, when i
change selection and 
press submit button ( non-Ajax ), form validates,re-renders and "default"
child instead of selected one gets selection. 
What i'm doing wrong or not doing at all?

here is the example of how childs get populated :

SelectItem[] selectOneRadioItems = new SelectItem[]{};
RadioGroup radioGroup = new RadioGroup("radioGroup", new Model());
ListView<SelectItem> selectOneRadioListItems = new
ListView<SelectItem>("radioGroup", Arrays.asList(selectOneRadioItems)) {
      protected void populateItem(ListItem<SelectItem> item) {
        Label label = new Label("label", new
        SelectItemModel<Serializable> itemModel = new
        Radio<Serializable> radio = new Radio<Serializable>("radio", itemModel,

Any tips will be appreciated. 

View this message in context: 
Sent from the Users forum mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to