Hi,
You need a TableDecorator. Extend TableDecorator class and implement the
method addRowId().
Ricardo.
On 4/8/07, Jared Blitzstein <[EMAIL PROTECTED]> wrote:
I have the following table.
How can I give each TR that it produces a unique html id attribute (which
is going to be ${patient.id}? FYI, I looked at
http://displaytag.sourceforge.net/11/displaytag/tagreference.html and
didn't see anything
<display:table htmlId="patients" id="patient" name="patients"
sort="page" requestURI="">
<display:column title="Id">
<a href="view.htm?patientId=${patient.id}">${patient.id}</a>
</display:column>
<display:column title="First Name" sortable="true">
${patient.firstName}
</display:column>
<display:column title="Last Name" sortable="true">
${patient.lastName}
</display:column>
<display:column title="Birthdate" sortable="true">
${patient.birthdate}
</display:column>
<display:column title="Delete">
<span id="deleteButton_${patient.id}" onclick="deletePatient('${
patient.id}');" style="cursor: pointer;">Delete</span>
</display:column>
</display:table>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user