Announcement Announcement Module
Collapse
No announcement yet.
FacesContext addMessage migration webflow 1 to webflow 2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 10:36 AM.

  • #2
    I've seen this in the forum ..

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

    Comment

    Working...
    X