You should be able to use a nested <c:forEach> tag, or a nested
<display:table> element.
http://displaytag.homeip.net/displaytag-examples-1.1/example-nestedtables.jsp
Matt
On 3/14/07, mmaia <[EMAIL PROTECTED]> wrote:
Hi,
I need to display some photo albuns on a web page. I´d like to use
displaytag as it provide pagination, etc... I´ve been looking around and
couldn´t find out how to customize it to build a 3 column table wich should
display 3 diferent records from the same information, something like the
code that follows but in this case it display the same photo and album name
for the 3 provided columns. What I need is to iterate over the collection
for each column so I´ll have one different element from the collection for
each column.
[code]
<display:table
name="applicationScope.albumList"
cellspacing="0"
cellpadding="0"
id="albumList"
export="false"
class="pacote"
>
<display:column paramId="id" paramProperty="id">
<c:out value= "><br>
<c:out value="${albumList.nomeAlbum}"/><br>
</display:column>
<display:column paramId="id" paramProperty="id">
<c:out value= "><br>
<c:out value="${albumList.nomeAlbum}"/><br>
</display:column>
<display:column paramId="id" paramProperty="id">
<c:out value= "><br>
<c:out value="${albumList.nomeAlbum}"/><br>
</display:column>
</display:table>
[/code]
Any ideas about how to go to the next elemento from the collection in each
column?
--
View this message in context:
http://www.nabble.com/Displaytag-customization-tf3404646s2369.html#a9482794
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com