mike27
mike27

Reputation: 975

spring mvc with facelets

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

Answers (3)

Cichy
Cichy

Reputation: 1329

It is possible to configure Spring MVC with Facelets. Check the solution here: https://github.com/acichon89/springmvcfacelets

Upvotes: 3

HHP
HHP

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

alex lopez
alex lopez

Reputation: 31

It might be worth trying Spring Web Flow, that comes with JSF2 (facelets) support:

http://static.springsource.org/spring-webflow/docs/2.3.x/reference/htmlsingle/spring-webflow-reference.html#whatsnew-swf-220

This link to the official documentation has a sample app integrating Spring WebFlow with faces.

Upvotes: 3

Related Questions