Use Case –
User wanted to have a table where its rows should be displayed based on selectManyCheckbox.
Step 1, Create binding for the table in bean.
Step 2, Create one variable selectedList of java.util.List type.
Step 3, Create valueChangeListener on selectManyCheckbox and assign selectedList = (List)ValueChangeEvent.getNewValue();
a. on click on commandButton, repopulate the list which is displaying data in table. selectedList will have all selected checkbox indexes.
b. add partialTarget on table binding.
Step 5. make sure bean is in pageFlowScope.
Step 6, Done. Enjoy!!!