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

    execute javascript code after jsf action?

    Ronald Johnson Newbie

      I have code like this:

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

      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?