Moin!
I have a situation where I try to display an error message using p:message
for an Exception that is raised in a getter. But this results into the message "WARNUNG: There are some unhandled FacesMessages, this means not every FacesMessage had a chance to be rendered."
.
I do the following to attach the Message to FacesContext:
FacesContext.getCurrentInstance().addMessage(cliendId, getFacesMessage(severity, msgKey, args));
I think the message cannot be rendered, because, creating a message in a getter happens in a phase where it is to late to render it...
Is there a way to create a message in a getter instead of in an action? Maybe it is possible to reset the rendering phase?