Re: PatternValidator with regular expression

2007-02-26 Thread wong wayne
Thanks a lot for your clear explanation. It seems is a long route for upgrading from v3 to v4. regards wayne --- Numa Schmeder <[EMAIL PROTECTED]> wrote: > Oups sorry, I haven't seen something in your > previous mail, > It didn't work for the following reason: > the validators binding only acce

Re: PatternValidator with regular expression

2007-02-26 Thread Numa Schmeder
Oups sorry, I haven't seen something in your previous mail, It didn't work for the following reason: the validators binding only accept a collection of Validators that are new to tap4. Thus you can only use the validators prefix (validators="validators:required, pattern=myPattern") etc... The

Re: PatternValidator with regular expression

2007-02-26 Thread wong wayne
Thanks for your reply. Sorry to tell you that the method suggested seems not work, same error message resulted. Finally solved by using validators but I still willing to know what’s the root cause and the expression posted previous cannot apply to validators. I need to changes as follows, any thoug

Re: PatternValidator with regular expression

2007-02-26 Thread Numa Schmeder
Try to put literal in front of your pattern. Thus : value="literal:[EMAIL PROTECTED] {2,6}$" Numa Le 26 févr. 07 à 10:02, wong wayne a écrit : Dear all I have some problem on Pattern Validator. Similar code work fine in Tapestry 3 but have problem on Tapestry 4. Keep saying that "Error init

PatternValidator with regular expression

2007-02-26 Thread wong wayne
Dear all I have some problem on Pattern Validator. Similar code work fine in Tapestry 3 but have problem on Tapestry 4. Keep saying that "Error initializing property patternString of bean 'emailValidator'" and I cannot figure out what's the problem. Coding as below bean name="emailValidator" cla

PatternValidator with regular expression

2007-02-26 Thread wong wayne
Dear all I have some problem on Pattern Validator. Similar code work fine in Tapestry 3 but have problem on Tapestry 4. Keep saying that "Error initializing property patternString of bean 'emailValidator'" and I cannot figure out what's the problem. Coding as below bean name="emailValidator" cla