Number is fine Dev. But regex validator has to work right. i worked with it
before. Now it is not working. I want to make it work.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Sat, Dec 27, 2014 at 6:37 PM, Dave Newton <davelnew...@gmail.com> wrote:

> 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