5 Replies Latest reply on Feb 12, 2008 8:28 AM by ilya_shaikovsky

    execute javascript code after jsf action?

    ronaldj52

      I have code like this:

      <script>
      function myFunction(){
       //do something
      }
      </script>
      <a4j:commandLink action="#{someBean.itemClicked}" >
       <f:param name="listEntry" value="#{node.ref.id}"/>
       <h:outputText value="#{node.ref}"/>
      </a4j:commandLink>
      


      and I want the myFunction() to be called, but only when the action #{someBean.itemClicked} has finished executing.

      i can for example not use onComplete attribute since it is just looking at the client side and not on the server side....

      any ideas how to achieve this?