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

    h:message not working in ajax refresh

    Wayne Bagguley Newbie

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

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

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


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


      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?