1 Reply Latest reply on Feb 11, 2010 6:11 AM by Nick Belaevski

    how to detect for facesmessage for particular component id and particular severity in EL?

    v c Newbie

      hihi all,

       

      i can't seem to find out how to do something like the following:

       

      <c:if test="#{ <code to test if certain message exists at certain severity > }" > Hello! </c:if>

       

      basically, i want to render some html code based on whether there is a specific severity level message available.

       

      i added the message in my action class using code like the following:

       

      FacesMessages.instance().addToControl("myComponentId", StatusMessage.Severity.ERROR, "Error!! >_<");
      

       

      thanks,

      -v