-
1. Re: rich:messages not showing messages
softwareaksoy Dec 17, 2007 12:59 PM (in response to germanescobar)I got the same error, it renders the message on some pages, and doesnt render on other pages.
-
2. Re: rich:messages not showing messages
softwareaksoy Dec 17, 2007 1:16 PM (in response to germanescobar)I solved my problem , in the pages that messages not rendered, rich library was not declared. when I added the declaration my problem solved
-
3. Re: rich:messages not showing messages
pmanabe Dec 17, 2007 4:05 PM (in response to germanescobar)try to input the messages tag inside a4j:outputPanel tag and reRender it component
-
4. Re: rich:messages not showing messages
germanescobar Dec 18, 2007 5:31 PM (in response to germanescobar)My problem just happens the first time the page is shown. Afterwards, messages are shown correctly. My tag libraries:
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
And my rich:messages tag declaration:<a4j:outputPanel id="pnlMessages"> <rich:messages id="msgs" /> </a4j:outputPanel>
Thanks. -
5. Re: rich:messages not showing messages
ilya_shaikovsky Dec 19, 2007 9:20 AM (in response to germanescobar)What do you mean under "My problem just happens the first time the page is shown.". Why you excpect the messages will appear after page just loaded?
-
6. Re: rich:messages not showing messages
germanescobar Dec 21, 2007 10:47 AM (in response to germanescobar)I need to show a message the first time the page loads.
-
7. Re: rich:messages not showing messages
ilya_shaikovsky Dec 22, 2007 8:45 AM (in response to germanescobar)rich:messages - analogous to basic jsf messages components. So it works like the original with some additional features.
After first time page loads - there are no messages in context so nothing shown by rich:messages. -
8. Re: rich:messages not showing messages
germanescobar Dec 24, 2007 10:55 AM (in response to germanescobar)Thats why I have the following in my Managed Bean Constructor:
public LoginBean() { FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Test", "test")); }
If I use h:messages, it shows the message the first time the page is loaded, but when I change to rich:messages, it doesn´t show the message the first time the page is loaded.
Thanks. -
9. Re: rich:messages not showing messages
abelevich Dec 26, 2007 9:44 AM (in response to germanescobar)can't reproduce with 3.1.3 GA and 3.2.0-SNAPSHOT.