Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

To use FacesContext.getMaximumSeverity() to display global error message?

843844Oct 28 2008 — edited Oct 28 2008
dear 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2008
Added on Oct 28 2008
7 comments
274 views