myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Young" <>
Subject RE: Generics in <function-signature> for custom EL function
Date Fri, 10 Nov 2006 04:29:56 GMT

PS:  if I remove the generic part from the Map declaration works fine, so
it's not a biggie.



From: Daniel Young [] 
Sent: Friday, 10 November 2006 2:24 PM
Subject: Generics in <function-signature> for custom EL function


Hi all,


I'm trying to expose the following function in EL:


public static String getMessage(final String locale, final Map<String,
Message> messages) {

. . .



However I'm having trouble specifying the messages parameter in my
taglib.xml, due to the Generic.  I have the following:








The &lt; seems to encode fine, but there comma between the String and
Message seems to confuse things.  I get the following:


Caused by: java.lang.ClassNotFoundException: java.util.Map<java.lang.String


Is this a known error, or can I get around it somehow?






View raw message