File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Is it possible integrating Spring with JSF2 and Primefaces? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Is it possible integrating Spring with JSF2 and Primefaces?" Watch "Is it possible integrating Spring with JSF2 and Primefaces?" New topic
Author

Is it possible integrating Spring with JSF2 and Primefaces?

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 595
Hi,
Is it possible doing something like this?


SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Brian Enochson
Greenhorn

Joined: Apr 12, 2011
Posts: 13

Are you asking if you can integrate Spring core (and not specifically asking about Spring MVC) for dependency injection while using JSF2 and Primefaces? If so the answer is yes. You can load the spring context in your web.xml using the spring class ContextLoaderListener. You need to set a context param in the web.xml stating where the spring configuration file(s) is/are located. Primefaces integration is as easy as adding the jar for primefaces into your application.

This link covers what you need to do very well. http://technology-for-human.blogspot.com/2010/12/jsf-2-with-spring-3-basics-part-1-of-2.html

Brian
 
 
subject: Is it possible integrating Spring with JSF2 and Primefaces?
 
Threads others viewed
invoking java function with java script Onclick event
bean:write query
button
Is it possible to write SCJP 6.0 by using SCJP 5.0's coupon
Can one action class have more than one Form class
developer file tools