Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring in jsf

 
ahmet temiz
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I want to use spring in jsf
Is there any tutorial you can recommend.
I have no experience on sPring

Regards

Ahmet Temiz
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic