2 Replies Latest reply on Aug 3, 2008 8:04 AM by Gena

    a4j:support + valueChangeListener doesn't work anymore

    Gena Newbie

      Hello i've got some troubles with the invocation on valueChangeListener on requests sent by h:commandButton ajaxified by a4j:support:

      <tr:form useUpload="true">
      <a:region>
       <a:outputPanel ajaxRendered="true" keepTransient="true">
       <tr:inputFile valueChangeListener="#{imageUploader.uploadFileChange}"
       simple="true"
       id="fileinput"/> <h:commandButton value="Upload" action="#{imageUploadController.uploadImage(imageUploader)}">
      <a4j:support action="#{imageUploadController.uploadImage(imageUploader)}" disableDefault="true" reRender="messages_div" status="globalStatus" event="onclick" />
      </h:commandButton>
      
       </a:outputPanel
      </a:region>
      </tr:form>
      


      If i comment out the a4j:support block it works as it should: the valueChangeListener is called and the upload proceeds.

      here is the phaseTracker output:

      23:12:52,328 ERROR [STDERR] 02.08.2008 23:12:52 org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE RESTORE_VIEW 1
      23:13:09,296 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER RESTORE_VIEW 1
      23:13:09,296 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE APPLY_REQUEST_VALUES 2
      23:13:09,296 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER APPLY_REQUEST_VALUES 2
      23:13:09,296 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE PROCESS_VALIDATIONS 3
      23:13:09,312 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER PROCESS_VALIDATIONS 3
      23:13:09,312 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE UPDATE_MODEL_VALUES 4
      23:13:09,312 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER UPDATE_MODEL_VALUES 4
      23:13:09,312 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE INVOKE_APPLICATION 5
      23:13:09,343 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER INVOKE_APPLICATION 5
      23:13:09,343 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE RENDER_RESPONSE 6
      23:13:09,468 ERROR [STDERR] 02.08.2008 23:13:09 org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER RENDER_RESPONSE 6
      


      What am i doing wrong?

      Thanks for any help, Gena