Re: regex validator problem

2014-12-28 Thread Chris
Hi, 1 - When you wrote select box, did you mean drop-down list ? Because drop-down list are not exactly  input fields. The user can't write something he wants. Could you please give examples ? 2 - Why don't you use validator type=requiredstring like in EditAction-validation.xml ? 3 - If you

regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
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

Re: regex validator problem

2014-12-27 Thread Dave Newton
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

Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
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

Re: regex validator problem

2014-12-27 Thread Dave Newton
On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: validator in the following way but it is not working. Please help. Define not working. -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton b: Bucky Bits g: davelnewton so: Dave

Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
Hi Dave, when -1 is getting submited it has to display error msg which is not getting displayed. successfully moving to the next page. It is not moving to the input page even. Now i have changed the validator to int so everything is working fine. but i need regex validator to work even

Re: regex validator problem

2014-12-27 Thread Dave Newton
Did you try defining a complete regex, e.g., with the start/end markers, `^` and `$`, at the beginning/end of the regex? On Sat, Dec 27, 2014 at 8:10 AM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: Hi Dave, when -1 is getting submited it has to display error msg which is not