Results 1 to 2 of 2

Thread: FacesContext addMessage migration webflow 1 to webflow 2

  1. #1
    Join Date
    Sep 2008
    Posts
    3

    Default FacesContext addMessage migration webflow 1 to webflow 2

    We make a migration from webflow 1 to webflow 2 and using Trinidad / Tomahawk

    I know FacesContext.getCurrentInstance() is null in webflow2.

    How can i add a global FacesMessage to FacesContext?

    example doesn't work in webflow 2:

    public Event doLogin(RequestContext p_requestContext)
    {
    ....
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR,"blah",nu ll)
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.addMessage(null, msg);
    ...

    }

    How is the solution?
    Last edited by oelman; Sep 30th, 2008 at 10:36 AM.

  2. #2
    Join Date
    Jul 2008
    Location
    Medellín, Colombia
    Posts
    135

    Default

    I've seen this in the forum ..

    try reading http://forum.springframework.org/showthread.php?t=14352

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •