I have such rich message:
<rich:message for="confirmpassword"> <f:facet name="passedMarker"> <h:graphicImage value="/images/passed.gif" styleClass="richMsg"/> </f:facet> <f:facet name="errorMarker"> <h:graphicImage value="/images/error.gif" styleClass="richMsg"/> </f:facet> </rich:message>
public static void addMessage(UIComponent component, String msg) { FacesContext.getCurrentInstance().addMessage(component.getClientId(FacesContext.getCurrentInstance()), new FacesMessage(msg)); }
OK, I got it:) Sorry, I'm new to richfaces.