Why use a regex for what appears to be a number?
On Dec 27, 2014 5:36 AM, "Yaragalla Muralidhar" <yaragallamur...@gmail.com>
wrote:

> i have a select box. by defualt it submits "-1". I want to write a
> validation using regex tosay the selection is mandatory. I have written the
> validator in the following way but it is not working. Please help.
>
> <field-validator type="regex">
>           <param name="regex"><![CDATA[[1-9]{1,3}]]></param>
>           <message key="error.branch.required" >cannot find
> error.branch.required</message>
>       </field-validator>
>
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
>

Reply via email to