This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help needed with JSF-Spring in eclipse  RSS feed

 
deshki raja
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to make a JSF-Spring Application in Eclipse....What are the jars I need....? What are the steps to be followed ? I have been trying it for sometime..but some how or other its not working out...can anyone help me on this ?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse has nothing to do with it.

Here's a snippet of my Maven POM for a Spring-based JSF project:


Some of these items are optional. For example, unless you're using JPA (and it's a good thing to use), you can omit spring-jpa. The first one is definitely required, the next 2 probably, after that I'm not sure. I added them as I needed them.

You also need to have this in your faces-config.xml file so that the spring beans can be seen (and injected) by the JSF EL processor:



The part that counts is the DelegatingVariableResolver. The others are mostly just good practice.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!