Re: Generics and Freemarker model

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
FreeMarker doesn't care about the generics type of the lists and maps.  
It works with either generics container types or raw container types,  
so you can use any.

Attila.

On 2008.03.23., at 2:21, krishnan.1000 wrote:
>
> Hi ,
>
> I am  trying to use freemarker template to load the ftl file. I am  
> trying to
> load 4 java.lang.String objects and the List<String> into the  
> template file.
> My question is when I am populating the HashMap<String, Object> with  
> the
> appropriate values. I am new at generics and freemarker so I hope  
> this is
> not a silly question. Is this a right way to use generics with the  
> domain
> model hash map? Hoping for a reply?
>
> Thanks,
>
> Krishnan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
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.