This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF Spring integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Spring integration" Watch "JSF Spring integration" New topic
Author

JSF Spring integration

Andrzej Cichon
Greenhorn

Joined: Nov 15, 2010
Posts: 9


web.xml:


application-Context.xml:


faces-config.xml:


User.java:


UserDAO:


UserBean (as my backing bean) :



index.jsp:


wyswietl.jsp:


After running application, jsf works, in my mysql it creates two tables as I wanted, but I can't save any users no matter how many i add new user from my web application, it doesn't work.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149
    
  27

You need to link Spring and JSF together. There's a reference you can put in the faces-config application element that allows the JSF EL processor to see Spring beans, making them inectable into JSF managed beans. I can't recall the name - they recently changed it. However, the older mechanism looked like this:



An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF Spring integration
 
It's not a secret anymore!