spring faces without spring flow

前端 未结 2 976
暗喜
暗喜 2021-01-17 06:15

I\'m starting a new JSF (2) project. I realize that pure JSF has some limitation and I\'m planning to drop in spring. JSF is a relatively new approach in spring (there is no

2条回答
  •  抹茶落季
    2021-01-17 06:33

    I'm using JSF 2 together with Spring 3 for Dependency Injection etc.

    I'm not familiar with Web Flow and I don't use it.

    In your faces-config.xml you can register the Spring SpringBeanFacesELResolver.

    
        org.springframework.web.jsf.el.SpringBeanFacesELResolver
    
    

    Then you can access Spring managed beans in your JSF code!

    Have a look at the Spring documentation and the API docs.

提交回复
热议问题