To select all the rows in a table design a page like
create a binding to the table, the valuechangelistener of the checkbox will have the following code
working example can be downloaded from
http://adfproject.googlecode.com/files/SelectAllRowsInATable.zip