Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Hibernate + Spring MVC + JSF + Tiles...possible?!

  1. #1
    Join Date
    Apr 2012
    Posts
    13

    Default Hibernate + Spring MVC + JSF + Tiles...possible?!

    Hi there,
    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...

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Apr 2012
    Posts
    13

    Default

    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..

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    Apr 2012
    Posts
    13

    Default

    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?!

  6. #6
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    JSF...

    You cannot use Spring MVC (controllers etc.) you can use Spring to wire everything together...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  7. #7
    Join Date
    Apr 2012
    Posts
    13

    Default

    what about thymeleaf?

  8. #8
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    No... JSF is JSF... JSF is already a complete solution... So it will not work with thymeleaf, tiles or whatever...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  9. #9
    Join Date
    Apr 2012
    Posts
    13

    Default

    No, I meant Spring MVC + Thymeleaf as ui framework insted of Spring MVC + JSF (we said that is not possible)...

  10. #10
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Thymeleaf can be used (as explained on the thymeleaf website)...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •