Hello ranchers,
I am using Primeface data table <p:datatable> to create/update data. I noticed that when I do validation, it validates the inputs on that page view only.
For example: <p:datatable rows="5" ...>
I have 7 rows in the data table. The first 5 are displayed. How can I also validate the last 2 rows on the next page?
Currently I'm trying to get this list of data from my session-scoped managed bean and loop through it. But then I found the values are sometimes null.
Therefore, is there a way to use the
JSF validate(FaceContext fc, UIComponent ui, Object obj) method to validate ALL rows (including those on other page links of the data table)?
Note that ui.findComponent("table_id") with give me the 5 rows of inputs only from the request map.
Thanks.