• Post Reply Bookmark Topic Watch Topic
  • New Topic

Highlighting a particular row of JSF Data Table

 
Shashidahanu Iyyanar
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.
 
Varun Khanna
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!