[richfaces-issues] [JBoss JIRA] (RF-12063) rich:notifyMessages not displaying error from valueChangeListener

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Thu Apr 5 09:53:47 EDT 2012


    [ https://issues.jboss.org/browse/RF-12063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682083#comment-12682083 ] 

Lukáš Fryč commented on RF-12063:
---------------------------------

Hey Brendan,


I found one issue, you don't have components enclosed in the {{h:form}}.

Once I have added it, it works like a charm.

I have additionally used following modified class:

{code:java|title=Messages.java}
public class Messages {

    public static FacesMessage getMessage(String bundleName, String resourceId,
            Object[] params) {
        return new FacesMessage("xyz", "test");
    }
}
{code}
                
> rich:notifyMessages not displaying error from valueChangeListener
> -----------------------------------------------------------------
>
>                 Key: RF-12063
>                 URL: https://issues.jboss.org/browse/RF-12063
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: component-output
>    Affects Versions: 4.2.0.Final
>         Environment: Mojarra 2.1.7, RF 4.2.0.Final, Windows 7, Glassfish 3.1.2, Chrome browser.
>            Reporter: Brendan Healey
>            Assignee: Lukáš Fryč
>
> I have a global notifyMessages in a template <rich:notifyMessages stayTime="3500"/>.
> I log a global error in the usual way from a value change listener (process validations
> phase):
> FacesMessage message = getFacesMessage(errKey);
> message.setSeverity(FacesMessage.SEVERITY_ERROR);
> FacesContext.getCurrentInstance().addMessage(null, message);
> but the error never appears. If I have an h:messages on the page which is ajax
> rendered the message appears ok.
> Regards,
> Brendan.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list