Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: inclusion of taglib tag in example

...

The Table tag renders a complete table including a pager and sortable headers.

Examples

Code Block
<!-- taglib declaration -->
<%@ taglib prefix="tt" uri="/tabletags"%>

<!-- A simple example that uses the table tag. -->
<tt:table value="items" action="Table" pagerCommand="pagerCommand"
	pagerValue="pagerDisplay" sortOrder="sortOrder"
	sortName="sortColumnKey">
	<tt:column title="Color" sortKey="col1" sortable="true">
		<s:property value="name" />
	</tt:column>
	<tt:column title="Number" sortKey="col2" sortable="true">
		<s:property value="value" />
	</tt:column>
</tt:table>

...