You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vi...@iflexsolutions.com on 2004/04/05 09:45:37 UTC

html:radio and Validator Framework

Hi,

            In my form has one radio button and many text fields. At the
time of  submit, I am validating the form using ValidatorFrameWork. I am
getting error message for all text fields. But not radio button fields.

            Is it that the validator framework cannot be used with the
Radio Button?

 

Thanks,

VJ



DISCLAIMER:
This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

Re: html:radio and Validator Framework

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
VJ, I think I'm right in saying that a radio button will not be included 
as a submit parameter if it is not checked. I know that's true for 
checkboxes. Are you using required() as well as whatever value you wanted?

Post the struts-config form declaration and the validation form dec, and 
the getter /setter method of the form bean for the radio button field. 
Validator doesn't care what HTML form-control it is, it just looks at 
the strings.

On 04/05/2004 09:45 AM Vijay.Nair@iflexsolutions.com wrote:
> Hi,
> 
>             In my form has one radio button and many text fields. At the
> time of  submit, I am validating the form using ValidatorFrameWork. I am
> getting error message for all text fields. But not radio button fields.
> 
>             Is it that the validator framework cannot be used with the
> Radio Button?
> 
>  
> 
> Thanks,
> 
> VJ
> 
> 
> 
> DISCLAIMER:
> This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
> 


-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org