File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes How to select multiple rows in a datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to select multiple rows in a datatable" Watch "How to select multiple rows in a datatable" New topic
Author

How to select multiple rows in a datatable

smee bond
Ranch Hand

Joined: Sep 29, 2007
Posts: 34
Hello,

I have a datatable code as follows:
<t ataTable>
<h:column>
<h:selectBooleanCheckbox id="contact" value="#{contact.selected}"/>
</h:column>

<h:column>
<h utputText value="#{contact.Name}" />
</h:column>

<h:column>
<h utputText value="#{contact.email}" />
</h:column>

</t ataTable>

I want to select multiple rows and when I click ADD (code not incl), I want to select the row data. Please help me with how to do this. Can I use <h:selectManyCheckbox>, but to select the complete row with this?
Thank you!
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
This link will be helpful

Good luck

Select multiple rows datatables


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
smee bond
Ranch Hand

Joined: Sep 29, 2007
Posts: 34
Thank you for the link. It seems to be very helpful.
sorry for the annoying smilies in the code! I had enabled it by mistake...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to select multiple rows in a datatable
 
Similar Threads
Input in a Nested table
if else in h:dataTable
Please HELP me. How To Hard Code Values in Each Row of a dataTable?
Problem with h:dataTable
"bind" property