what version of Wicket are you working on?

On 11/16/07, Suad AlShamsi <[EMAIL PROTECTED]> wrote:
> I added it .. Nothing changed?! I am still getting the same problem.
>
> Martijn Dashorst wrote:
> > add:
> >
> > modes.setReuseItems(true);
> >
> > Martijn
> >
> > On 11/16/07, alshamsi <[EMAIL PROTECTED]> wrote:
> >
> >> Hi All,
> >>
> >> I want to add the required validation on a RadioGroup component. I added 
> >> the
> >> setRequired(true); What happens is that if the user did not select a radio
> >> choice the validation msg will be shown. what should be the case. but if 
> >> the
> >> user selected a radio after that, the same msg will appear?! instead the
> >> user was suppose to be redirected to another page..
> >>
> >>
> >>
> >>    RadioGroup group = new RadioGroup("type");
> >>    ListView modes = new ListView("numbers", NUMBERS)
> >>    {
> >>             protected void populateItem(ListItem item)
> >>             {
> >>                 item.add(new Radio("radio", item.getModel()));
> >>                 item.add(new Label("number",
> >> item.getModelObjectAsString()));
> >>             };
> >>         };
> >>
> >>         group.add(modes);
> >>         group.setRequired(true);
> >>         add(group);
> >>
> >> Regards,
> >> Alshamsi
> >> --
> >> View this message in context: 
> >> http://www.nabble.com/Required-RadioGroup-tf4819483.html#a13788217
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> >
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-rc1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to