6 Replies Latest reply on Feb 8, 2009 6:50 AM by Daniel Ku

    How to get rich:message from code

    Luca Borzani Newbie

      I would like to do something similar in the rendered attribute of an h:outputText:

      rendered=#{empty view.messages}

      obviously view.messages doesn't exist. There's a way to know if some error messages are present form jsp/xhtml?

      My problem is I want to display a "no result" message when there's no data to display but i don't want that message to show up also on validation errors (empty query for example will produce a no result message and a value is required error). If i could know if some kind of error message is present i could just toggle the visibility of the h:outputText and all would be fine.

      thanks :)