I\'m trying to display a block only if there are Global messages in the JSF Queue.
I tried to use rendered=\"#{not empty facesContext.getMessageList(null)}\">
rendered=\"#{not empty facesContext.getMessageList(null)}\">
no need for custom EL function
try this
rendered="#{not empty facesContext.messageList}"
EDIT
Haven't tried it myself , but try
rendered="#{not empty facesContext.messageList(null)}"
An idea...
rendered="#{not facesContext.validationFailed and not empty facesContext.messageList}"