Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring MVC + Facelets, is it possible? [duplicate]

I have created a Spring MVC project with JSP and Hibernate and it works great. Now I would like to use Facelets instead of JSP.

My thought is to use Facelets like PrimeFaces as view instead of JSP, Spring MVC framework in the middle and probably Hibernate in the backend.

Is it possible? If yes, how can I achieve this ? If not, why not?

like image 776
Human Being Avatar asked Sep 02 '13 10:09

Human Being


1 Answers

Yes, if you are talking about Spring, of course that is possible. The Spring documentation mentions it. If you want integration of JSF and Spring MVC, then it is probably useless, since you don't need any Spring MVC controller to build your JSF pages.

You also don't need JSP. Your pages will be coded using Facelets tags.

There are many tutorials and examples available on the web. For instance:

  • JSF 2.0 Spring Hibernate Integration
like image 148
LaurentG Avatar answered Sep 24 '22 06:09

LaurentG