2 Replies Latest reply on Oct 31, 2007 11:33 AM by Alexey Kakunin

    Rich:messages not working with a4j:region

    Chris Baxter Newbie

      I have a simple page that uses an a4j:region and has rich:messages at the top of the page. The page is as follows:

      <html xmlns:ui="http://java.sun.com/jsf/facelets"
       <rich:messages layout="list" showDetail="true" showSummary="false">
       <f:facet name="infoMarker">
       <h:graphicImage value="/images/passed.gif" />
       <f:facet name="errorMarker">
       <h:graphicImage value="/images/error.gif" />
       <h:form id="Test">
       <h:inputText id="Text" value="#{TestBean.text}" required="true"/>
       <a4j:commandButton value="Do Test" action="#{TestBean.doTest}"/>

      If I try to click the 'Do Test' button, I expect to see the rich message display at the top of the page complaining about a missing required field. Instead I see nothing. If I remove the a4j:region, it works just fine. It also works fine if I use h:messages (wrapped in an outputPanel) instead of rich:messages. Is there a reason why rich:messages won't work properly when used with a4j:region?