Refresh panelGrid whenever gets updated

299 Views Asked by At

how to refresh the JSF panelgrid whenever data gets updated in db without refreshing the whole page.is there anything can be configured? or i should created a backbean function ? can anyone guide me with a example?

Thanks in advance

1

There are 1 best solutions below

0
Daniel On BEST ANSWER

Best way is to do so using Push Technology (You can trigger client behavior from the server)

For example PrimePush by Primefaces : PrimePush , but its not perfect yet , supposed to be in 3.5 version (I think)

So for now you can use Primefaces Poll , that way you will check every X seconds if the data was changed and if so, you could update a particular element using the update attribute