1 Reply Latest reply on Apr 30, 2010 7:15 AM by Ilya Shaikovsky

    a4j:commandbutton - faces error message not displayed

    lpmon Novice

      When I use a4j:commandButton and the target server method adds a facesmessage that message is not displaying on the page.  If I leave everything as is except use h:commandButton the message is displayed properly.  Suggestions?

       

       

      <a4j:form id="sfrm2">
      <h:panelGrid columns="4" id="msgArea" styleClass="tblCenter">
          <h:outputText value="#{messages['l.sendMessageLocateUnit.enterMessage']}"/>
          <h:inputText size="60" value="#{textMsgToUnit.msg}"/>

       

          <h:panelGroup rendered="#{!s:hasRole('read-only')}">
              <h:commandButton
                  action="#{textMsgToUnit.sendMsg}"
                  onclick="startLocate()"
                  value="#{messages['l.sendMessageLocateUnit.sendNow']}"
                  rendered="#{textMsgToUnit.mode == 'sender' }"/>

       

         <a4j:commandButton timeout="90000"
                      action="#{textMsgToUnit.sendMsgAndLocate}"
                      onclick="startLocate()" oncomplete="finishedLocate()"
                      value="#{messages['l.sendMessageLocateUnit.locate']}"
                      reRender="locateResultArea"
                      rendered="#{textMsgToUnit.mode == 'locator' }" />

       

          <a4j:status id="substat" forceId="true" startStyleClass="submitStatus" startText="#{messages['l.sendMessageLocateUnit.locating']}" />
          </h:panelGroup>
          <h:outputText value=""/><h:outputText value=""/>
          <h:outputText value="#{messages['l.sendMessageLocateUnit.40chars']}"/>
      </h:panelGrid>