Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring 3 JSF 2 integration example needed

i want to Integrate Spring 3, Web Flow 2, JSF 2 together and i need you to recommend me a good tutorial or example, thanks in advance.

UPDATE:

i used following example, and it worked fine with me with no problems:

http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/

but it doesn't use spring web flow and i don't know if there are any problems with this approach.

like image 212
Mahmoud Saleh Avatar asked Apr 23 '26 21:04

Mahmoud Saleh


1 Answers

I recently did a template setup of Spring MVC 3 using Spring controllers and JSF 2 as the view generator.

http://papweb.wordpress.com/2011/07/29/spring-mvc-3-jsf-2-with-maven-2-and-tomcat/

DISCLAIMER: My own blog.

It's pretty straight forward for the most parts. Where it gets tricky is if you want to use JSF 2 forms with Spring MVC controllers. I'm hesitant to say if that even works as JSF has a lot of state-management going on in the background that is not easily translated to Spring.

If all you are after is the component and layout/rendring-related parts of JSF 2, it should get you there.

like image 79
pap Avatar answered Apr 26 '26 09:04

pap



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!