-
Sep 30th, 2008, 03:35 AM
#1
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.
-
Oct 1st, 2008, 12:14 PM
#2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules