This content has been marked as final.
Show 3 replies
-
1. Re: Add Global Message to rich:notifyMessages
v2adam Feb 15, 2012 8:01 AM (in response to dadidom)Try this, without stack:
<rich:notifyStack id="firstStack" position="topLeft" direction="vertical" method="first" /> <rich:notifyMessages id="notifyMessagesGlobal" sticky="true" globalOnly="true" stack="firstStack"/>
and in class just add message to context in action method:
FacesMessage facesMessage = new FacesMessage("summary"); facesMessage.setSeverity(FacesMessage.SEVERITY_ERROR or FacesMessage.SEVERITY_INFO); FacesContext.getCurrentInstance().addMessage(null, facesMessage);
must work fine!
-
2. Re: Add Global Message to rich:notifyMessages
healeyb Feb 15, 2012 12:59 PM (in response to v2adam)I just use <rich:notifyMessages stayTime="3500"/> and this displays messages submitted without
a client id.
-
3. Re: Add Global Message to rich:notifyMessages
v2adam Feb 15, 2012 4:04 PM (in response to healeyb)yes, can used without stack and globalOnly, if you want see message in notify, you must set null clientId.