java - Moving JSF Managed Beans to Spring beans -


I have just started spring in a JSF web application, and now let me start my JSF Managed Beans in Spring Beans. It is tempting to take these beans in context and specify faces- config.xml in org.springframework.web.jsf.el.SpringBeanFacesELResolver instead of having beans in the config-location XML file (faces- config.xml file).

If I grow towards spring beans (to gain the functionality of dependency injection) then I see a lot of benefits so that compared to JSF beans, I do not argue against moving into Spring Beans. I could, but I would like to hear from others what I can do. What is the best practice for this, or this case?

Thank you.

The only big issue is that you are tight - with JSF coupling with spring and your JSF Ideas / models can not be used again and again without the spring. The only possible option will be upgraded in JSF 2.0 / JavaEe 6 and will be provided dependency injection instead of depending on the 3rd party Direra framework using JavaEE6. On the other hand, the benefits of current are sound you can do.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -