I have a problem while using the “Select Row Check box”
My scenario:
I have a table with two columns.
One column displays some list of item names and another column will displays a check box to select/unselect [Select Row Check box].
When even i selects a check box i want to append the item name(s) to an string or array list.
If you need to respond to the selection events on the client side without a round trip to the server, you can attach a row change listener to the table control with a custom function in a script block that gets called when a row select occurs.
For example:
CAF.model("#{caf:cid('yourTableIdHere')}".addRowChangeListener(function(tableId,rowId,eventType) {
if (eventType == "select") {
alert('Row Selection Changed for Row: ' + rowId);
}
});
Or if you want to get the selected rows on the server side inside of an action handler method, you can use the methods on the selectable content provider object.