posted 15 years ago
Hi Great Ranchers,
I need to implement a table in the format given below ....
<webuijsf:table augmentTitle="false" id="" paginationControls="true" style="height: 48px; left: 48px; top: 48px; position: absolute; width: 695px" title="" width="695">
<webuijsf:tableRowGroup id="" rows="11" sourceData="#{SearchBean.beanList}" sourceVar="currentRow">
<webuijsf:tableColumn headerText="Type" id="type_Col">
<webuijsf:staticText id="type_id" text="#{currentRow.tableDataProvider.list[currentRow.tableRow.rowId].type}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn headerText="ID" id="id_Col">
<webuijsf:staticText id="id_id" text="#{currentRow.tableDataProvider.list[currentRow.tableRow.rowId].id}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn headerText="Locked" id="locked_Col1">
<webuijsf:staticText id="locked_id" text="#{currentRow.tableDataProvider.list[currentRow.tableRow.rowId].locked}"/>
</webuijsf:tableColumn>
</webuijsf:tableRowGroup>
</webuijsf:table>
Actually my requirement is that when I click on a perticular column then table needs to get sorted according to that column. Means if I click on "Type" column then table should get sorted according to "Type". Hope I made the requirement clear.
Please let me know the possible and easy way to do so .
Thanks & Regards