File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF with other technologies, Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF with other technologies, Hibernate" Watch "JSF with other technologies, Hibernate" New topic

JSF with other technologies, Hibernate

Larry Nelson

Joined: May 06, 2006
Posts: 2
How well does JSFs work with other technologies such as Hibernate, Struts or Spring?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
There are many tutorials discussing Struts and JSF integration.
Spring has a seperate library to integrate with JSF.

Hibernate doesn't come into play because its a ORM Tool and JSF is a web framework. Yes if you ask how Hibernate works with Spring then it would be more rational.

JSF doesn't facilitate or help Hibernate.
[ September 12, 2006: Message edited by: Adeel Ansari ]
Fintan Conway
Ranch Hand

Joined: Apr 03, 2002
Posts: 141
Originally posted by Larry Nelson:
How well does JSFs work with other technologies such as Hibernate, Struts or Spring?

Hi Larry,

Struts is the web application framework that came before JSF. The authors of the JSF spec recommend that if you are starting a new project you should prefer JSF over Struts. There is a Struts-JSF bridge, if you need to use JSF with an existing Struts application.

Plenty of people are using Spring with JSF applications without any bother.

Since the backing beans which hold the data from your JSF pages are POJOs, you can also use the same beans for an ORM implementation (JDO or Hibernate). This I think is the great advantage of using JSF - you can use one business java class, and have JSF display it on the front-end and then use JDO to persist it to the back end.


subject: JSF with other technologies, Hibernate
It's not a secret anymore!