Sep 22nd, 2012, 06:27 AM
Hibernate + Spring MVC + JSF + Tiles...possible?!
I'm working on a web application that use Spring as controller and DI engine, Hibernate as data access layer and simple JSP whit Tiles as template framework...
I'm trying to figure out if is possible an approach like these...
M ---> Hibernate
V ---> JSF + Tiles
C ---> Spring
ie to replace the obsolete JSP whit JSF as view tier...
I've not found any documentation for starting with this architecture..
advice? tip? best practice?!
Thank's in advance...
Sep 24th, 2012, 01:14 AM
You cannot (at least afaik) use tiles and JSF... If y ou use JSF you don't need tiles you can use facelets (JSF view templating).
Sep 24th, 2012, 07:23 AM
If facelets can replace tiles is ok...
So, excluding tiles, can I use JSF only for the view tier?!
Some example of integration in this sense may be useful..
Sep 24th, 2012, 07:30 AM
I suggest the reference guide you cannot use Spring MVC with JSF as JSF is a MVC (kind of) implementation... You can do that with Spring Web Flow (replacing the navigation logic etc. to webflow but with JSF 2.x it is already pretty decent).
Sep 24th, 2012, 07:45 AM
That's the point...
I've found a lot of documentation for integrating Spring Web Flow with JSF, but I'd like to keep Spring's MVC implementation...
Are you sure it's not possible!? In case what would you recommend as UI engine?!
Sep 24th, 2012, 07:54 AM
You cannot use Spring MVC (controllers etc.) you can use Spring to wire everything together...
Sep 25th, 2012, 09:40 AM
Sep 26th, 2012, 12:36 AM
No... JSF is JSF... JSF is already a complete solution... So it will not work with thymeleaf, tiles or whatever...
Sep 26th, 2012, 03:17 AM
No, I meant Spring MVC + Thymeleaf as ui framework insted of Spring MVC + JSF (we said that is not possible)...
Sep 26th, 2012, 03:19 AM
Thymeleaf can be used (as explained on the thymeleaf website)...
Tags for this Thread