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


 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to