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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -