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 initializing property
patternString of bean 'emailValidator'" and I cannot
figure out what's the problem.
Coding as below
bean name="emailValidator"
class="org.apache.tapestry.valid.PatternValidator"
lifecycle="page">
set name="patternString"
value="[EMAIL PROTECTED],6}$"/>
set name="patternNotMatchedMessage"
value="invalid-email-format"/>
set name="requiredMessage" value="field-required"/>
/bean>
component id="_textField_email" type="TextField">
binding name="value" value="email"/>
binding name="validators"
value="beans.emailValidator"/>
binding name="displayName"
value="literal:label_email"/>
/component>
Any hints would be appreciated. One more question on
i18n, does the error message support different
languages? Thanks a lot.
regards
wayne
______________________________________________________________________
______________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
This message has been 'sanitized'. This means that potentially
dangerous content has been rewritten or removed. The following
log describes which actions were taken.
Sanitizer (start="1172481891"):
Split unusually long Date: header.
SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
Match (names="unnamed.txt", rule="2"):
Enforced policy: accept
Total modifications so far: 1
Anomy 0.0.0 : Sanitizer.pm
$Id: Sanitizer.pm,v 1.90 2005/01/04 20:30:13 bre Exp $
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]