Hi Michel,

Am 12.05.2014 10:58, schrieb Michael Wyraz:
I can access the type of a bound parameter using
ComponentResources.getBoundType(parameterName). But for List<String> it
returns (of course) List.class. Is there a way to access the generic
parameters of the bound type somehow?

No, there is no way to access the generic type, this information is lost during the compilation process.

I need this for correct (automatic) type coercion in some special cases.

You could create custom sub-classes for that purpose, e.g. StringList extends ArrayList<String>. If you have any more questions or suggestions, please take the discussion to the users mailing list.

Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org

Reply via email to