1 Reply Latest reply on Sep 29, 2008 6:25 PM by mikolaj nowak

    rich:message icon doesn't show up when adding msg from java

    mikolaj nowak Newbie

      I have such rich message:

      <rich:message for="confirmpassword">
       <f:facet name="passedMarker">
       <h:graphicImage value="/images/passed.gif" styleClass="richMsg"/>
       <f:facet name="errorMarker">
       <h:graphicImage value="/images/error.gif" styleClass="richMsg"/>

      When message is being added by standard validator the icon is being shown, but when I add message with method:
      public static void addMessage(UIComponent component, String msg) {
       FacesContext.getCurrentInstance().addMessage(component.getClientId(FacesContext.getCurrentInstance()), new FacesMessage(msg));

      or custom validator, icon doesn't show up. What is the problem? Please help.