• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to select a row datatable

 
scientia india
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

How i can i select a row in datatable?I need to display some icons while selecting a particular row.
Please help me...

Thanks in Advance
Scientia
 
Brajendra Mathema
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how are you selecting the row ..using some check box or radion button..if you are using check box or radio button you can use value change listener and get that particular row data from h:datatable(using getRowData()) after binding datatable in the backing bean.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"scientia india " please check your private messages.
 
scientia india
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Thank for your reply.
Actually i need to select the row on mouse click.my code is something like this



Thank You
Scientia
 
Brajendra Mathema
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..to carry out the functionality in mouse click i guess you want row data when you click any column of the row,

in that case i guess you will need to place link on each column

such that when you click the link you call an action listener where you can get the value of that particular row....

i haven't tried this...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic