0 Replies Latest reply on Apr 16, 2008 9:08 AM by Emmanuel Koch

    Rich Message : not shown the first time

    Emmanuel Koch Newbie


      I use the rich message, and I want to display only the errorMarker, without text. All works fine when I display the validation text, but when I set the showDetail attribute to false, I then have to click twice on the command button to make the marker appear.

      Maybe a bug?

      <rich:modalPanel styleClass="panel" id="editPanel" minHeight="300" minWidth="450" zindex="2000" >
      <h:form id="editPanelForm">
      <h:outputLabel for="email" value="Email: " />
      <h:inputText id="email" value="#{UserFace.selectedUser.email}" required="true" />
      <rich:message for="email" showDetail="false">
       <f:facet name="errorMarker"><h:graphicImage value="/img/error.gif"/></f:facet>
      <a4j:commandButton value="Save" action="#{UserFace.saveSelectedUser}" reRender="listForm" eventsQueue="default" oncomplete="if (!ajaxRequestContainsErrors()) #{rich:component('editPanel')}.hide();" />