10 Replies Latest reply on May 26, 2011 11:25 AM by ginc

    oncomplete does not get fired after actionListener finished processing

    ginc Newbie

      Hi everyone,

       

      recently I upgraded to richfaces 4 and jsf 2 in order to solve the IE9 issue. The page is rendered fine, the problem is, that it does not function correctly anymore.

       

      I am using commandButton and jsFunction to access actionListener method, after that the oncomplete should fire another js function. But it doesn't!

       

       

      <a4j:jsFunction name="syncInput"
                          oncomplete="alert('hello')"
                          actionListener="#{Bean.syncInput}"
                          render="user_input"/>
      
      <a4j:commandButton value="test" actionListener="#{ChatBean.syncInput}" oncomplete="alert('hello')" />
      

       

      The alerts never occur with oncomplete, but they do with the other events like onclick.

       

      Is this a bug, or am I mistaken her?

       

      Gregor