To use FacesContext.getMaximumSeverity() to display global error message?
843844Oct 28 2008 — edited Oct 28 2008dear all,
In my application I have some fields defined in form for which I displayed specific error message, linked to the component.
but to me more transparent for the user I would like to add a global message to catch its attention about validation error in the page.
I find following , I was quiete happy: *rendered="#{!empty facesContext.maximumSeverity}"*
{code}
<ice:outputText rendered="#{!empty facesContext.maximumSeverity}" styleClass="errorGlobal" value="#{msg.errorMessageGlobal}"></ice:outputText>
{code}
Problem when there is no more error-warning message displayed to the interface, it's still displayed.
In my log, I see: *lifecycle I WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.*
Advice, idea would be welcome.