• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Highlighting a particular row of JSF Data Table

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic