Re: multiple collections for list directive

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Wednesday, February 24, 2010, 6:36:56 AM, bhushan2005 wrote:

> Hi,
>
> I have to output something like this
>
> <table>
> <tr>
> <td> val1 </td> <td> val2 </td>
> </tr>
> </table>
>
> where val1 and val2 are coming from 2 seperate ArrayLists.
>
> How can i implement this using the list directive or by any other means in
> freemarker

Use the indices directly, not the list directive. (Or write a
TemplateSequenceModel implementation that packs the related elements
together... but that's Java programming already.)

> Thanks in advance :)

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
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.