Thank you very much.
   
  I've created a validator to check the byte length of a string.
  It's not too difficult to create a validator in server side.
  I haven't figured out how to create a client side validator.
  Don't know how to integrate javascript into the validator yet.

  But I have a problem when displaying the error message of my own validator.
  I prepared both  English and Chinese message property files (en_US and 
zh_TW). 
   
  The language of My OS is traditional Chinese.
  In Firefox, it displays Chinese message (zh_TW) in Tapestry's validator, but 
it displays English message (en_US) in my own validator.
   
  The most wierd thing is that my validator works correctly in IE6. It displays 
Chinese
  message just like what Tapestry's validators do.
   
  Regards,
  Chihpeng Lin
  
Kent Tong <[EMAIL PROTECTED]> wrote:
  Chihpeng Lin yahoo.com> writes:

> Do we have a validator which can check the max length in bytes of a string?

Not that I know of. But you can create your own. BTW, for Tapestry 4
you should use the validators like MaxLength, MinLength and others
in the org.apache.tapestry.form.validator package, not those in
the org.apache.tapestry.valid package.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


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

  


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to