Forwarding this on to the user list, where it belongs. Original question:
"Hi all, I am new to T5, and I am trying to compare a server-side variable to the data input from the client side. So is there a way to have something like <t:textfield t:id="amount" t:validate="required, min=${total}"> ? I tried this but it throws an exception as "Could not find a coercion from type java.lang.String to type org.apache.tapestry5.FieldValidator." I am not sure why it takes total as a String while it's a double in the server side. Can anyone help me with this? Thanks!" Follow up: Begin forwarded message: > From: leothelion <okram...@hotmail.com> > Date: August 16, 2011 7:36:41 PM CDT Aug 16,2011 > To: d...@tapestry.apache.org > Subject: Re: Question about FieldValidator > Reply-To: "Tapestry development" <d...@tapestry.apache.org> > > Thanks for you reply. It almost works for my code except that the min class > only takes integer, but my total is a double variable. > So how can I override the min class to fix the coercion? > > Thank you! > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Question-about-FieldValidator-tp4706033p4706285.html > Sent from the Tapestry - Dev mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org > For additional commands, e-mail: dev-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org