You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Kim <ki...@comcast.net> on 2005/11/09 21:30:20 UTC
FacesContext.getCurrentInstance() returns null when using JspTilesViewHandlerImpl
I am a long time Struts/Tiles user, but I am working on a new application
with MyFaces/Tiles and EJB3.0 on JBoss 4.0.3SP1. I am using all the latest
releases. Everything is working fine except for the FacesContext. I started
the application without Tiles and got the login process working. I then
added the JspTilesViewHandlerImpl and a few Tiles layout templates and
definitions. Everything works except FacesContext.getCurrentInstance() now
always returns null when invoked in a managed bean method. I was using the
FacesContext to add error messages and would really like to maintain this
functionality.
I used the example configuration in the Wiki, and I have tried a number of
variations always with the same result, the FacesContext is null.
Any help is greatly appreciated.
Kim