我可以在显示标签 table 中为每一行指定一个 ID 吗?
Can I give each row an ID in a displaytag table?
我可以编写 decorator 来创建 table 行中的单元格。所以很容易给 <td>
元素一个 id
属性,但是我可以给 <tr>
一个 id
属性(使用装饰器或其他任何东西)吗?
我可以在装饰器中实现 addRowId()
方法。
我应该花更长的时间阅读文档。
http://demo.displaytag.org/displaytag-examples-1.1/example-rowclass.jsp
我可以编写 decorator 来创建 table 行中的单元格。所以很容易给 <td>
元素一个 id
属性,但是我可以给 <tr>
一个 id
属性(使用装饰器或其他任何东西)吗?
我可以在装饰器中实现 addRowId()
方法。
我应该花更长的时间阅读文档。
http://demo.displaytag.org/displaytag-examples-1.1/example-rowclass.jsp