I am using RichFaces 4. My problem is that the message does not appear at all. If I use rich:message the message appears briefly then dissapears.
This is the controller:
The problem was the a4j:ajax tag. It was sending a second request, and the messages were cleared. This works: