Hi all, I am new to
JSF and just started my first project. I have some questions about the datagrid and form submission.
I have a datagrid with a list checkbox in PageA, after I select some checkbox in the datagrid, i want the backend bean to retrieve the selected rows, then process these selected rows, finally display the result in PageB.
So I have PageA, submit the form with some selected rows in datagrid.
I have a PageB, PageB displays the processed result from the selected rows.
I have my PageA jsf page like this:
My first question:
1. For page navigation, in commandButton, should I use action="PageB", or use actionListener="#{MyBean.method}". I don't know how the backendbean get the selected rows and then process these rows,
then navigate to PageB?
2. In backend MyBean, how can i retrieve the selected rows from the datagrid, could anyone give some examples?
Thank you very much for your help!