This content has been marked as final.
Show 5 replies
-
1. Re: How to close rich:messages?
dmitry.demyankov Nov 7, 2007 1:59 AM (in response to nikodc)You could warp rich:messages in panelGrid and set rendered="false" when you click on 'close' link.
-
2. Re: How to close rich:messages?
juanignaciosl Nov 7, 2007 5:57 AM (in response to nikodc)rich:simpleTogglePanel is also quite useful for hiding/showing pieces of pages
-
3. Re: How to close rich:messages?
nikodc Nov 7, 2007 9:53 AM (in response to nikodc)OK, both your answers are similar: wrap and control visibility with a parameter (for example de rendered attribute of the panelGrid). What should be the value of that attribute? How can I set it to something like "if there is any message shown").
Thanks again!
-nikodc- -
4. Re: How to close rich:messages?
sergeysmirnov Nov 7, 2007 4:53 PM (in response to nikodc)"nikodc" wrote:
How can I set it to something like "if there is any message shown").
rendered="#{! empty facesContext.maximumSeverity}" -
5. Re: How to close rich:messages?
thehire85 Nov 13, 2007 3:35 PM (in response to nikodc)<rich:messages onclick="this.style.display='none'" title="Click to close"/>
Here's a simple way to solve this using javascript.