that is a bug.
Fixed it.

johan


On 3/9/06, Joe Toth <[EMAIL PROTECTED]> wrote:
I was having similiar trouble - using 1.2beta.

In FormInput example by default something is always selected for the
RadioChoice because of this in the FormInputModel

line 91...
private String numberRadioChoice = (String)FormInput.NUMBERS.get(0);

If you change it to private String numberRadioChoice; so there is no
default, and submit the form, it still says its valid.

Is there something else that has to be done?


On 3/9/06, Johan Compagner < [EMAIL PROTECTED]> wrote:
> what does a choicerenderer have to do with a required validator?
>
>
> johan
>
> On 3/9/06, Bennett, Timothy (JIS - Applications) <
> [EMAIL PROTECTED]> wrote:
> >
> >
> > I wonder if mine are blowing up because I've added ChoiceRenderers...
> >
> >
> > ________________________________
>  From: Johan Compagner [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 09, 2006 9:06 AM
> > To: [email protected]
> > Subject: Re: [Wicket-user] Validation of SingleSelectChoice components
> >
> >
> >
> > If you add a required validator to the radiochoice doesn't that work if
> you don't select anything?
> >
> > A dropdown is can be tricky because there is most of the time a selection.
> > So if the value of that is "" then required should also work fine. And by
> default our nothing selected
> > values are "" so then the required check should work.
> >
> > This area is changed in 1.2 now required is a formcomponent property and
> we really have 3 defined steps:
> >
> > requiredCheck()
> > typeConversion()
> > valdiation()
> >
> > So a validator now always have the real converted object
> (getConvertedInput on FormComponent)
> >
> > johan
> >
> >
> >
> > On 3/9/06, Bennett, Timothy (JIS - Applications)
> <[EMAIL PROTECTED] > wrote:
> > >
> > >
> > > I'm using Wicket 1.1.1 and I'm stumped on how to apply RequiredValidator
> (or equivalent validation) to components like DropDownChoice and
> RadioChoice?
> > >
> > > Regards,
> > >
> > > Timothy
> >
> >
> >
>
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to