Shing Hing Man <matmsh <at> yahoo.com> writes: > On a form, when I input "123.fff" in numberTF and then > submit the form, I get numberTF=123.0 in my form > listerner method and no validation error. I was > expecting a validation error. Should 123.fff fail the > validation ?
This is the behavior of the Format class hierarchy in Java. They don't necessarily use all the available characters in the string. To solve this problem, I'd suggest that you add a feature request to enhance the FormatTranslator class to support a "strict" option. When it's on, it should check if the entire string has really been used (probably skipping white spaces at the end). -- 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]
