The problem is that Tapestry itself is already adding this Coercion:
TapestryIOCModule:
add(configuration, String.class, Long.class, new Coercion<String,
Long>()
{
public Long coerce(String input)
{
return new Long(input);
}
});
So, the only possible way is to decorate (override) the TypeCoercer and
return your implementation on coerce.
--
View this message in context:
http://tapestry-users.832.n2.nabble.com/Custom-coercion-from-String-to-Long-tp5582965p5598307.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]