It looks to me like composite components' attributes don't allow generic types. Here's a simple test case:
<cc:attribute name="stringList" type="java.util.List<java.lang.String>" />
The error I get is,
java.lang.ClassNotFoundException: java.util.List<java.lang.String>
(If I replace the < and > with < and >, I get a error because that's not valid XHTML.)
I know that the generic part of the type will be erased at runtime, but I was hoping to use generics here just for clarity of reading the code. Is that possible?
no man its not possible
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With