4 Replies Latest reply on Jun 5, 2009 5:53 AM by ilya_shaikovsky

    oncomplete not firing from commandButton

      The following a4j:form works as I intended except the oncomplete javascript function never fires.The server returns a 200 along with some xml which looks as I would expect, the single field in the form is updated correctly. I don't get a javascript error or anything it just seems not to fire. What am I doing wrong?

      <a4j:form id="attachmentsForm" >
      
       <t:inputHidden id="attachment" value="#{writableMail.newAttachment}">
       <f:converter converterId="com.dbplc.webmail.WebspaceFile" />
       </t:inputHidden>
      
       <a4j:commandButton id = "addAttachment" action="# {writableMail.addInlineAttachment}"
       oncomplete="openCallBack()" reRender = "attachmentsForm,attachmentsPanel" />
      
       </a4j:form>
      


      Thanks in advance for any help.