Re: Freemarker list with multiple lines
Pete Helgren <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Organization | Value Added Software, Inc |
| Message-ID | <[email protected]> |
Llorenzaccio,
Based on what I see in your sample template, you would need to have
multiple data items for each iteration of the row OR have two lists to
iterate through.
<table>
<#list foo as f>
<tr>
<td>...</td>
</tr>
</#list>
<tr>
</tr>
<#list bar as b>
<tr>
<td>...</td>
</tr>
</#list>
</table>
Otherwise your request doesn't logically make sense to me.
Does your data model have a single value retrieved per iteration or
multiples?
Pete
Llorenzaccio wrote:
> In fact, when I try to do this, the 2nd row is not displayed under the first
> row, as I imagined it would, but it is displayed as if it was a new table,
> seemingly unrelated to the first row.
>
> I'd like something like this :
>
> row 1.1
> row 1.2
>
> row 2.1
> row 2.2
> ...
>
> Instead, I have this :
>
> row 2.1 row 2.2 row 2.3...
>
> row 1.1
> row 1.2
> row 1.3
> ...
>
>
>
> sanjashish wrote:
>
>> Please be more specific .As you can have as many rows ,you require.
>>
>> On Wed, Aug 26, 2009 at 9:31 PM, Llorenzaccio<[email protected]>
>> wrote:
>>
>>> Hello,
>>> I am currently doing this :
>>>
>>> <table>
>>> Ã <#list blah as b>
>>> Ã Ã <tr>
>>> Ã Ã Ã <td>...</td>
>>> Ã Ã Ã <td>...</td>
>>> Ã Ã </tr>
>>> Ã </#list>
>>> </table>
>>>
>>> But I'd like to do this, however it doesn't work :
>>>
>>> <table>
>>> Ã <#list blah as b>
>>> Ã Ã <tr>
>>> Ã Ã Ã <td>...</td>
>>> Ã Ã Ã <td>...</td>
>>> Ã Ã </tr>
>>> Ã Ã <tr>
>>> Ã Ã </tr>
>>> Ã </#list>
>>> </table>
>>>
>>> Why can't I have 2 (or more) table rows for each element of the list ?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Freemarker-list-with-multiple-lines-tp25151435p25151435.html
>>> Sent from the freemarker-user mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>> 30-Day
>>> trial. Simplify your report design, integration and deployment - and
>>> focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. Ã http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> FreeMarker-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>>>
>>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> FreeMarker-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>>
>>
>>
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user