Re: Attribute for String and List<String>

Vitaliy Tymchyshyn <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.devel
Message-ID <[email protected]>
WAGNER, Urs wrote:
>  
>
> Is it possible to define a tag attribute valid for
>
> Both String and List<String>?
>
>  
>
> When I use a List<String> attribute with a String a such
>
> An error:
>
>  
>
> javax.servlet.jsp.el.ELException: Attempt to convert String "1;2;5;10"
> to type "java.util.List", but there is no PropertyEditor for that type
>
>  
>
> If the argument is a String I would like to call a string tokenizer with
> ; delimiter.
>  
>   
Make it java.lang.Object
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.