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 res olves to &nbsp;

-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! 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

_________________________________________________________________
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

Reply via email to