int numRows = table.getRows();
for (int index = firstRow; index < (firstRow + numRows); index++)
{
table.setRowIndex( index );
}
-----Original Message-----
From: Dave [mailto:[EMAIL PROTECTED]
Sent: Friday, September 09, 2005 1:51 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: Selecting checkboxes in the backing beanAdd a property in backing bean data model(member class of collection) such as selected, and bind the checkbox to the property.
Balaji Saranathan <[EMAIL PROTECTED]> wrote:Hi,
I have a page where there is a SelectOneMenu and a dataTable beneath. I would like to select a couple of rows in the dataTable based on the selection of the SelectOneMenu.
I have registered a ValueChangeListener to the SelectOneMenu and my method is getting called.
But how do I actually check the CheckBoxes created in the DataTable programatically based on one of the column information. Assuming I have a colum called name, and I have to select all the rows containing the name "XXX", how would I get a handle to the column rows and the checkboxes to select it.
Is looping through the UIViewRoot, the only way?
Does anyone have any ideas?
Thanks
Balaji
Confidentiality Notice
The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.
Click here to donate to the Hurricane Katrina relief effort.
Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. |

