Re: T5: @Validate on RadioGroup

2011-04-26 Thread Adam Zimowski
https://issues.apache.org/jira/browse/TAP5-1513 On Wed, Apr 13, 2011 at 9:46 AM, Adam Zimowski wrote: > Taha - > > You are correct, I was wrong. I patched up RadioGroup by adding: > >    Binding defaultValidate() >    { >        return defaultProvider.defaultValidatorBinding("value", resources);

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
Taha - You are correct, I was wrong. I patched up RadioGroup by adding: Binding defaultValidate() { return defaultProvider.defaultValidatorBinding("value", resources); } and now the @Validate annotation on my bean enum property is read in correctly. So this is the bug in Radi

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Taha Hafeez
Hi Adam Hi Adam On Wed, Apr 13, 2011 at 5:19 PM, Adam Zimowski wrote: > Hi Taha, > > > You are still not getting the point... > > Why so direct, having a bad day? Please tell me how am I not getting > the point when I clearly wrote that: > > Sorry if it appeared rude, that was certainly not my

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
Hi Taha, > You are still not getting the point... Why so direct, having a bad day? Please tell me how am I not getting the point when I clearly wrote that: Works. The validate parameter is not null with the above, and the Radio group works as expected, as shown in RadioGroup processSubmission(

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Taha Hafeez
You are still not getting the point... 1. fieldValidationSupport,validate is the service responsible for validating a field. It requries a FieldValidator which is passed as a parameter to it. If this @Parameter validate is null, as is the case with RadioGroup, fieldValidationSupport is never call

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
Hi Taha - I agree with you it seems to be a bug, and I (think) I get what you are saying. However, I am having a hard time seeing why the bug would be in RadioGroup processSubmission() or anywhere in the RadioGroup class for that matter. Rather, it seems the bug (if exists) is deeper in the chai

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Taha Hafeez
it is the @Parameter validate in RadioGroup that is required not @Validate as that is never checked in case @Parameter validate is not given in a RadioGroup ... Please read my answer again :) It seems to be bug!! regards Taha On Wed, Apr 13, 2011 at 3:40 PM, Adam Zimowski wrote: > Thanks Taha,

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
Thanks Taha, but I did supply @Validate("required") annotation and validation did not happen. Adam On Tue, Apr 12, 2011 at 8:15 PM, Taha Hafeez wrote: > Hi > > I compared the code from RadioGroup with that of Select and found the > following difference > > In Select if parameter 'validate' is no

Re: T5: @Validate on RadioGroup

2011-04-12 Thread Taha Hafeez
Hi I compared the code from RadioGroup with that of Select and found the following difference In Select if parameter 'validate' is not given a default is chosen and so it is never null. Validation is performed in processSubmission() method by the line fieldValidationSupport.validate(selectedValu

T5: @Validate on RadioGroup

2011-04-12 Thread Adam Zimowski
I have a bean where @Validate("required") does not work on a radiogroup, but Registration Information : : : : : Adam --