I am using custom ajax-called javacode that does some processing on the server. In this process various errors can occure that I add to the FacesContext
via addMessage()
.
I want to display these messages in the same <rich:messages>
-tag that I use for my validation errors.
Do you know a way to display these messages in the <rich:messages>
-tag after the ajax-request completed?
My initial idea was adding
<a4j:jsFunction name="richDisplayError" reRender="messages" />
to the markup and calling richDisplayError when the request completed, but it seems the messages panel is rerendered empty.