The Tapestry NumericValidator seems to rely on whether Double.valueOf(String) will throw an exception, which it does for '1k'.
How are you configuring and using your validator? On Tue, Mar 29, 2011 at 5:19 PM, Adam Zimowski <[email protected]> wrote: > It is server side. Looks like if input starts with a digit, Tapestry is happy > :) > > Adam > > On Tue, Mar 29, 2011 at 5:05 PM, Howard Lewis Ship <[email protected]> wrote: >> Seems like a bug to me! Surprising, though. Is this server-side or >> client-side validation? >> >> On Tue, Mar 29, 2011 at 2:49 PM, Adam Zimowski <[email protected]> wrote: >>> For numeric fields, Tapestry validates correctly non-numeric input. >>> However, input such as: >>> >>> 1k >>> 1\ >>> etc.. >>> >>> passes the validation. >>> >>> Am I missing something? >>> >>> Adam >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> >> -- >> Howard M. Lewis Ship >> >> Creator of Apache Tapestry >> >> The source for Tapestry training, mentoring and support. Contact me to >> learn how I can get you up and productive in Tapestry fast! >> >> (971) 678-5210 >> http://howardlewisship.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
