You could also do it with a map whose keys are the row numbers and values the row titles, instead of using the choose block below. Let me know if you do it that way.
-Jorge
Jorge Barroso <[EMAIL PROTECTED]> wrote:
-Jorge
Jorge Barroso <[EMAIL PROTECTED]> wrote:
This is how I implemented it in one of my tables.
The trick is to add a column for the row titles, and modify the cell value
for each row iteration.
<display:table id="matrix" name="${matrices}" >
<c:choose>
<c:when test="${matrix_rowNum == 1}" >
<c:set var="rowTitle" value="title.key_row1" scope="page" />
</c:when>
<c:when test="${matrix_rowNum == 2}" >
<c:set var="rowTitle" value="title.key_row2" scope="page" />
</c:when>
<c:when test="${matrix_rowNum == 3}" >
<c:set var="rowTitle" value="title.key_row3" scope="page" />
</c:when>
</c:choose>
<display:column titleKey="title.empty.html" class="rowTitle">
<fmt:message key="${rowTitle}"/>
</display:column>
...data columns...
</display:table>
title.empty.html resolves to
-Jorge
fea jabi <[EMAIL PROTECTED]> wrote:can anyone help me with this? Is it possible to do this using displaytag?
Thanks.
>From: "fea jabi"
>Reply-To: [email protected]
>To: [email protected]
>Subject: [displaytag-user] table
>Date: Tue, 29 Nov 2005 13:55:16 -0500
>
> ;Have 2 columns is my table.
>
> 1. ----- has no heading
> 2. Hrs ----- heading
>
>1. column has data
>Loans
>Deposits
>
>2. column has values that has to come from the action class.
>
>Table has to be as shown below.
>
> Hrs
>Loans
>Deposits
>
>What is the better way of doing this?
>only the 2nd column has to be prepopulated.
>
>
>Thanks.
>
>_________________________________________________________________
>Express yourself instantly with MSN Messenger! Download today - it's FREE!
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>files
>for problems? Stop! Downlo ad the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>_______________________________________________
>displaytag-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/displaytag-user
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Yahoo! Personals
Single? There's someone we'd like you to meet.
Lots of someones, actually. Try Yahoo! Personals
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

