Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

In JSF 2.0 this trick has been replaced with or later it is better to create a custom ResourceHandler wrapper and use FacesServlet instead. In that way, JSF will create FacesContext instance.

There have been several posts asking how to get a Faces Context from outside of JSF such as in a servlet. There are many reasons for doing this such as:

...