• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Sortabe JSF Table

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>

<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
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic