On a successful action method a ViewScoped bean is posting an INFO message and then it returns a navigation string. The target page is showing the message on a p:messages and a p:growl instances. No problem so far. However this page displays a list of many records on a p:datatable with lazy loading and a paginator. Now, if I paginate to other set of records the p:messages still is showing the posted message. I want to show the posted message only on the p:growl which would disappear after a few seconds, while p:messages keeps showing it forever. This doesn't work for me, according to the official documentation:
<p:growl for="anotherkey" />
context.addMessage("anotherkey", facesMessage3);
any help would be very appreciated. (PF 6.1, JSF 2.2, Omnifaces 2.5, PrettyFaces 3.3.3 on Tomee+MySql)