This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sortabe JSF Table  RSS feed

Maneessh saxena
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 headerText="ID" id="id_Col">
<webuijsf:staticText id="id_id" text="#{currentRow.tableDataProvider.list[currentRow.tableRow.rowId].id}"/>

<webuijsf:tableColumn headerText="Locked" id="locked_Col1">
<webuijsf:staticText id="locked_id" text="#{currentRow.tableDataProvider.list[currentRow.tableRow.rowId].locked}"/>


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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!