Type Coercers

Type coercion allows you to pass a value of the wrong type to a component's parameter. Tapestry will see it and ask its TypeCoercer
service to "coerce" it to the right type.

This enables passing a Long to an Integer parameter, a String to a Boolean parameter, a BigDecimal to a Double parameter, and so on.
The full list is here.

Tapestry's DateField works with java.util.Date. Let's say you also wanted it to work with Joda Time's DateMidnight and LocalDate.
To achieve this, we have contributed 4 type coercers. You can see the contribution in AppModule, below.