This content has been marked as final.
Show 2 replies
-
1. Re: Double notification message
martam Nov 9, 2012 4:19 AM (in response to strannik)Hi
I'm using similar code (the only difference is that I don't use addNotificationMessage method in 'oncomplete', but my message is displayed at the end of the savePage method) and everything works correct - the message is displayed only once.
Are you sure that you don't have two 'rich:notifyMessage' by accident (eg. the second one is in the template for this page)?
Marta
-
2. Re: Double notification message
strannik Nov 9, 2012 4:00 PM (in response to martam)Hi, Marta
Thank you for looking onto that.
What is weird debugger shows that backend method is invoked several times. I changed a bit flow and called my
notify method the following way. After that only one notification message is shown.
<a4j:ajax event="click" listener="#{adminController.addNotificationMessage('page.saved')}" />