If I add 

        configuration.add(new CoercionTuple<Long, LocalDate>(Long.class,
LocalDate.class,
                new Coercion<Long, LocalDate>() {
                    @Override
                    public LocalDate coerce(Long input) {
                        return new LocalDate(input);
                    }
                }));

        configuration.add(new CoercionTuple<LocalDate,
Long>(LocalDate.class, Long.class,
                new Coercion<LocalDate, Long>() {
                    @Override
                    public Long coerce(LocalDate input) {
                        return input.toDate().getTime();
                    }
                }));

Then it will work only if in the event I put 

<t:eventlink t:event="showWeekHour" t:context="currentWeek.toDate().time"
zone="zoneHours" >
Click
</t:event>

So it wont coerce Joda to some long number that is time like 15422410000 but
it will print it as 2012-10-10



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Type-Coercer-for-Joda-Time-tp5717942p5717951.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

Reply via email to