No messages displayed through h:messages
Hi all,
I have got a page that doesn't display the facesmessages I added to the context in my backingbean. I use the following code
Backing bean:
publicvoid addDisplayMessage(FacesMessage.Severity severity, String summary, String detail){
FacesMessage fm =new FacesMessage(severity,summary,detail);
FacesContext.getCurrentInstance().addMessage(null,fm);
}
addDisplayMessage(FacesMessage.SEVERITY_ERROR,"message","message");
JSP:
<t:div styleClass="messages">
<h:messages globalOnly="true" fatalClass="messagefatal" errorClass="messageerror" warnClass="messagewarn" infoClass="messageinfo" />
</t:div>
I do not understand why it doesnt work on this page, because it does work on other pages!
Also, it seems that the messages are removed from context when the action where I call addDisplayMessage() redirects me to the same page.
Thanks
Ruud.

