primefaces - add listener to page refresh event -
i have action needs happen after page refreshed
(not pressing f5 time page has been refreshed).
how add such event listener?
i use this:
<h:form> <p:remotecommand name="update_page" process="@this" update="form" actionlistener="#{myview.myaction}" /> . . . . </h:form> <script> $(document).ready(function() { update_page(); } </script>
load or refresh of page run remotecommand.
Comments
Post a Comment