Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible using Spring MVC + PrimeFaces?

I want to know if it is possible and how to use Spring MVC with PrimeFaces.

like image 892
Tayba Avatar asked Aug 11 '12 10:08

Tayba


1 Answers

After 3 days of research I just don't think it's possible out of the box. Spring MVC with JSF exactly - Web Flow is something else. Spring Roo straight up makes you choose whether you're going to have Spring MVC or JSF.

None of the examples supposedly integrating both would work for me on latest library releases using Jetty. At this point I wouldn't be totally surprised that some of them do actually work with other containers as I did get varying results trying out a couple with Tomcat. Most examples do the same thing without explaining much - they do use the Spring MVC dispatcher servlet and declare the faces servlet separately as well and how it's supposed to work is all a mystery especially when it doesn't work.

I'm new to all this, but to me the desired thing would be for the Spring dispatcher just handle JSF2 out of the box, JSF2 has been out for a while yet I can't google up anybody trying to do that or even expressing the same sentiment; is there something inherently wrong with what I'm thinking?

like image 67
Lev Kuznetsov Avatar answered Oct 07 '22 04:10

Lev Kuznetsov