1 Reply Latest reply on Mar 23, 2007 10:13 AM by ilya_shaikovsky

    h:message not working in ajax refresh

    waynebagguley

      I've got a page with this piece of xhtml in:

      <f:subview>
       <h:panelGroup id="findJobPanel">
       <a4j:include viewId="/findJob/search.xhtml"/>
       </h:panelGroup>
      </f:subview>
      


      In the pages that are used by the a4j control, I have a h:form with a h:inputText and corresponding h:message

      e.g.

      <h:message for="jobNumber" styleClass="cntError"/>
      


      and

      facesMessages.addToControl("jobNumber", "Job number #{jobNumber} not found");
      


      The h:message only displays if the error is the result of the automatic validation. If I programatically set the error message it doesn't show up.

      Any ideas?