Regexp validation fails for numeric fields

2016-06-23 Thread Ricardo Veloso
Tapestry 5.4.1 is failing for regexp validations when they are related to numeric fields. Example of regexp applied to a numeric field validation: [0-9]+(\.[0-9][0-9]?)? This fails because in validation.js matches function uses input.match(re); Well if the regexp is for numeric field parseNumber

Re: Regexp validation problem

2014-04-01 Thread Howard Lewis Ship
Look in the documentation about moving the regexp out of the binding and into the page's message catalog. On Tue, Apr 1, 2014 at 3:00 PM, Richard Frovarp wrote: > This looks to be a bug, but I can't find any good documentation, so I > thought I'd bring it here first. > > I through a really quic

Regexp validation problem

2014-04-01 Thread Richard Frovarp
This looks to be a bug, but I can't find any good documentation, so I thought I'd bring it here first. I through a really quick and simple regexp together to validate time entries. It's goal was to be quick, and to verify that the values entered look like 24 hour time. 35:99 would validate, 5:

Re: Regexp validation

2008-05-30 Thread Brian Long
Sura, take a look at this example here http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/TextField.html you'll have to put your regular expression in your classes properties file for it to work . . . /Brian. Sura, Bhupesh wrote: I am usin

Re: Regexp validation

2008-05-29 Thread Mikaël Cluseau
Try to change your "\\" to "\". Le jeudi 29 mai 2008 à 20:13 -0400, Sura, Bhupesh a écrit : > I am using tapestry 5.0.10 and I have a code in a .tml file which looks like > this. > > t:validate="regexp=([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-

Regexp validation

2008-05-29 Thread Sura, Bhupesh
I am using tapestry 5.0.10 and I have a code in a .tml file which looks like this. No matter what input string I give, the regex validation is failing. The regex is valid and works fine with my java code. Any help would be greatly appreciated.