1 Reply Latest reply on Jul 4, 2007 8:35 AM by ilya_shaikovsky

    a4j:poll not calling action

    theayates

      I cannot get a4j:poll to work, in that it never invokes its action target.
      e.g. in the code fragment:

      <a4j:poll id="pollit" action="#{posDevices.cardReadAction}"
      reRender="rep" interval="6000"
      onsubmit="alert('poll submitted 4')"
      oncomplete="alert('poll completed')"
      />

      <h:inputText size="50" value="#{test.text}" id="fred">
      <a4j:support event="onchange" reRender="rep"
      action="#{posDevices.cardReadAction}"
      />
      </h:inputText>
      <h:outputText value="#{test.text}" id="rep"/>

      the cardReadAction is not invoked by the poll tag but is invoked by the support tag! The onsubmit javascript alert is called but not the oncomplete.

      I am running ajax4jsf-1.1.1 and facelets-1.1.12. Any ideas as to what's wrong?