Closed GoogleCodeExporter closed 9 years ago
OR, please let me know if I should ask this question on stackoverflow.com as a
regular question without the notion of an OmniFaces 'feature request'.
Original comment by smithh03...@gmail.com
on 30 Oct 2012 at 9:06
I just read the following:
http://stackoverflow.com/questions/9025782/how-to-display-a-facesmessage-for-a-c
ommand-link
I may need to follow those suggestions to solve this. :)
Original comment by smithh03...@gmail.com
on 30 Oct 2012 at 9:22
I added code in my UsersController.checkNotifications() for the p:poll to add
clientId="pollNotificationsform:pollForNotifications), but server log returned
the following:
INFO: pf_UsersController.checkNotifications(): Components.findComponent(...)
found pollNotificationsForm:pollForNotifications
WARNING: There are some unhandled FacesMessages, this means not every
FacesMessage had a chance to be rendered.
These unhandled FacesMessages are:
...
So, I followed directions, specifically as Cagatay stated in forum topic below:
http://forum.primefaces.org/viewtopic.php?f=14&t=19179&p=62069&hilit=globalonly#
p62069
p:growl/messages for="..." and addMessage("...", new FacesMessage(...)) where
"..." must match in xhtml and bean.
So, I 'think' I solved this issue by using this approach, and I went through
and did the following:
1. added globalOnly="true" to the p:growl/messages in children xhtml pages for
all the FacesMessages in my app where I do addMessage(null, new
FacesMessages(...))
2. p:growl for="pollForNotifications" and addMessage("pollForNotifications",
new FacesMessage(...)) on parent xhtml page
So, BalusC, you can mark this issue as Invalid, if you like. Thanks. :)
Original comment by smithh03...@gmail.com
on 30 Oct 2012 at 11:27
Indeed, the error "There are some unhandled FacesMessages, this means not every
FacesMessage had a chance to be rendered." is after all a developer error.
Thank you for your effort though. In the future, if there's uncertainty, you'd
indeed better open a topic on PF forum, or a question on SO.
Original comment by balusc
on 31 Oct 2012 at 12:28
Okay, thanks.
Original comment by smithh03...@gmail.com
on 31 Oct 2012 at 12:29
Original issue reported on code.google.com by
smithh03...@gmail.com
on 30 Oct 2012 at 9:03