Seems like a missing feature; Tapestry should have a built-in ValueEncoder for the Date type, to encode a Date into a more reasonable string, and decode it back when converting the parameter back into a field value.
On Thu, Aug 9, 2012 at 11:46 AM, gricker <ricke...@gmail.com> wrote: > > > In the java code I have : > > @Property > @ActivationRequestParameter > private Date startDate; > > In the .tml file I have: > <t:datefield t:id="startDate" /> > > In url I will see something like: > http://localhost:8080/ccccc/tttt/startDate=Thu%20Aug%2009%2000:00:00%20EDT%202012 > > If I reload the page I will get > org.apache.tapestry5.ioc.internal.OperationException: Could not find a > coercion from type java.lang.String to type java.util.Date. > > If I change "Date" to string and adjust the .tml accordingly it works. Most > of the examples I have seen using @ActivationRequestParameter are with > Strings. > > what I am doing wrong? > > Thanks, > > Greg > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/ActivationRequestParameter-question-tp5715201.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > -- 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: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org