java - Rerender RichFaces error message after ajax request -


I am using custom Ajax-Javascript which does some processing on the server, there may be various errors in this process I will add via FacesContext to addMessage () . I get these messages from the same & lt; Rich: messages & gt; -tag which I use for verification errors.

Do you want to send these messages to & lt; Rich: messages & gt; Do you know one way to display after Ajax-request completion in -tag?

My initial idea was requested when & lt; A4j: jsFunction name = "richDisplayError" rerender = "messages" /> adding and calling richDisplayError, but it appears that the message panel is rerendered blank

< P> & lt; Rich: Messages & gt; Set ajaxRendered to true at then the problem is elsewhere. Perhaps:

  • You are redirecting instead of forwarding, and lost messages
  • You are not actually adding messages (check with debug)
  • You have views / sub-views with different / deprivation

Comments