• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Highlighting a particular row of JSF Data Table

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have to implement the following scenario using JSF in my project.The scenario is as such:I am displaying a list of results from the database to the end user in the form of a JSF data table.The requirement is that whenever I click on a particular row of the table,the corresponding row should get highlighted with a particular color.This has to be done without using any third-party implementation of JSF or Javascript.Is the above mentioned scenario possible in JSF?Anyone please suggest a solution for this problem.A example would be much better.Thanks in advance.

Regards,
Shashidhar.
 
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Modify stylesheet at run time i.e. whenever user clicks on an row, go to backing bean and recreat style for entire table and highlighting the row which has been clicked.

This has been discussed earlier in this site in more detail. Try to search it.
[ January 04, 2006: Message edited by: Varun Khanna ]
 
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic