Contribute a type coercer for your type in you AppModule, e.g.:
public static void
contributeTypeCoercer(Configuration<CoercionTuple<?,?>> configuration) {
// UUID conversion
Coercion<String, UUID> uuidCoercion = new Coercion<String,
UUID>() {
public UUID coerce(String input) {
return UUID.fromString(input);
}
};
configuration.add(new CoercionTuple<String, UUID>(String.class,
UUID.class, uuidCoercion));
}
-----Original Message-----
From: Athneria, Mahendra [mailto:[email protected]]
Sent: Thursday, May 31, 2012 2:47 PM
To: [email protected]
Subject: activation context in Tapestry
Hi All,
Can we pass some user defined Object through activation context? I tried it but
getting exception that cannot convert String to Object.
Is there any way through I can pass the user defined Object into Activation
Context?
Regards,
Mahendra Athneria
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]