Announcement Announcement Module
Collapse
No announcement yet.
JSF2 and Spring3 FacesContext must not be null with SpringBeanFacesELResolver Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSF2 and Spring3 FacesContext must not be null with SpringBeanFacesELResolver

    We have an app in JSF 1.2 and Spring 3.x using the SpringBeanFacesELResolver to inject Spring beans into ManagedBeans and it works fine.

    We are moving to JSF 2 using Spring 3.1.3 and I cannot get this to work. If I use the SpringBeanFacesELResolver as a resolver in my faces-config.xml, Spring gives me a 'FacesContext must not be null' when trying to instantiate a bean. If I don't use that resolver, the spring beans are not available.

    Is anyone facing this also? What do I need to do to get this to work???

  • #2
    Hi rickfish,
    I am facing the exactly same problem. Have you found solution?
    Thank you fro update.

    Comment


    • #3
      I found the solution, if someone is interested.

      In my case Spring is deployed as module in JBoss 7 server. Dependency to JSF 1.2 library was left in module.xml for Spring. Once the library version was updated everything works fine.

      Comment

      Working...
      X