This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

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 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
Acetylsalicylic acid is aspirin. This could be handy too:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic