File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Spring integration" Watch "JSF Spring integration" New topic

JSF Spring integration

Andrzej Cichon

Joined: Nov 15, 2010
Posts: 9





UserBean (as my backing bean) :



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: 15629

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:

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: JSF Spring integration
Similar Threads
Spring security and jsf Integration
Getting the below error when doing formvalidation in spring
Simple navigation rule
javax.servlet.ServletException: No adapter for handler
No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but