Reputation: 975
Is it possible to use facelets as view technology with Spring MVC? There is no mention about it in the official documentation, but I've heard that Facelets are very convenient and easy to use and I'd like to try it, I just don't know how...
Upvotes: 6
Views: 4503
Reputation: 1329
It is possible to configure Spring MVC with Facelets. Check the solution here: https://github.com/acichon89/springmvcfacelets
Upvotes: 3
Reputation: 11
Yes, You can. Rather very well you can have JSF frontend, Spring framework in the middle and probably Hibernate/webservice/JDBC in the backend.
For actions initiating from the JSF page which you migh expect to call the Spring in the backend, the controller in the JSF should call the Spring POJO and then onwards the it's all Spring to take care, you may have to pass on your bean from JSF to Spring bean.
Sometime back I found this document, hope it helps you.
Upvotes: 1
Reputation: 31
It might be worth trying Spring Web Flow, that comes with JSF2 (facelets) support:
This link to the official documentation has a sample app integrating Spring WebFlow with faces.
Upvotes: 3