messages

Is there a way to find out if there're messages via EL?I want to show or hide a div based on an expression ideally.Thanks
[143 byte] By [jamesclintona] at [2007-11-27 3:41:58]
# 1

MyBeanpublic boolean isMessage() {

return FacesContext.getCurrentInstance().getMessages().hasNext();

}

JSF<h:someComponent rendered="#{myBean.message}" />

BalusCa at 2007-7-12 8:45:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...