Best Way to Do a Data List View Refresh in JSF?

142 Views Asked by At

What is the best way to assure that a list of data entries is refreshed in a JSF XHTHML view?

After reading documentation, I implemented an event as follows:

<f:event type="preRenderView" listener="#{myDataCtlr.onloadListView}"/>

However, it appears that the onloadListView() does not always get invoked when the page is refreshed or transitioned into. The data table in the view needs to get refreshed with the latest data whenever the view is re-entered. Is there any way to do this without invoking an active method that reloads data using the following type of code:

<h:dataTable value="#{myDataCtlr.reloadItems()}" >
0

There are 0 best solutions below