Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF with other technologies, Hibernate

 
Larry Nelson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How well does JSFs work with other technologies such as Hibernate, Struts or Spring?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

[Edited]
JSF doesn't facilitate or help Hibernate.
[ September 12, 2006: Message edited by: Adeel Ansari ]
 
Fintan Conway
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards,

Fintan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic