aspose file tools*
The moose likes JSF and the fly likes how to select a row datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "how to select a row datatable" Watch "how to select a row datatable" New topic
Author

how to select a row datatable

scientia india
Greenhorn

Joined: Jul 02, 2009
Posts: 8
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

Joined: Jun 02, 2009
Posts: 39
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

Joined: Jun 06, 2007
Posts: 2718
    
    6

"scientia india " please check your private messages.


SCJP, SCWCD.
|Asking Good Questions|
scientia india
Greenhorn

Joined: Jul 02, 2009
Posts: 8
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

Joined: Jun 02, 2009
Posts: 39
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to select a row datatable