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: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org