viernes, 30 de noviembre de 2007

Displaytag

Una tabla con total de la columna ID, (no muy util pero rápido de ejemplificar):
<display:table name="workflowList" id="workflows" pagesize="5"
class="list" requestURI="workflowList.action"
decorator="org.displaytag.decorator.TotalTableDecorator">
<display:column sortable="true" headerClass="sortable"
href="workflow!input.action" paramProperty="id" paramId="workflowId">
<img src="images/view.gif">
</display:column>
<display:column property="id" title="Id" sortable="true"
headerClass="sortable" format="{0,number,0}" total="true"/>
<display:column property="name" title="Name" sortable="true"
headerClass="sortable" />
<display:column property="state" title="State" sortable="true"
headerClass="sortable" />
<display:column property="currentStepsNames" title="Current Steps"
sortable="true" headerClass="sortable" />
<display:column property="owner" title="Owner" sortable="true"
headerClass="sortable" />
<display:column property="actionsNames" title="Actions" sortable="true"
headerClass="sortable" />
</display:table>

No hay comentarios: