File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Spring in jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Spring in jsf" Watch "Spring in jsf" New topic

Spring in jsf

ahmet temiz

Joined: Apr 09, 2010
Posts: 12
I want to use spring in jsf
Is there any tutorial you can recommend.
I have no experience on sPring


Ahmet Temiz
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

I don't know of any tutorials myself, since I've been doing this so long I forgot where I learned it.

For the most part, adding Spring to a JSF program is pretty simple. You have to add a Spring EL resolver to the faces-config.xml file in order for the Managed Beans and View Definitions to be able to reference the Spring Beans in EL, but other than that, it's essentially the same as a non-JSF Spring webapp setup. Note that some Spring webapps may require adding 1 or 2 spring support libraries to your webapp server for annotation/instrumentation support, though. That's a Spring issue, not a JSF issue.

My JSF web.xml contains the following Spring definitions:

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Spring in jsf
jQuery in Action, 3rd edition