This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 10
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: 15950

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:

Customer surveys are for companies who didn't pay proper attention to begin with.
subject: Spring in jsf
Similar Threads
need advice please help----Recession???
JSF + Spring
JSF, strange form action generated
What Is the Next Marketable Technology To Learn
Spring vs JSF