Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 with JSF and RichFace

 
moh sak
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I'm trying to create a demo project using struts2 integrated with JSF and richfaces, but i didn't find any example or even a clue to indicate if that is possible or not, so my question is; can these technologies work together or not ?!

thanks in advance.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can understand mixing frameworks if they each offer something different (Struts with Spring/Hibernate for example). What I don't understand is wanting to use two presentation frameworks such as JSF and Struts that both do the same job. As I see it this makes things unnecessarily complicated and gives you nothing in return. My advice is to pick a presentation framework and stick with it.
 
moh sak
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Thanks alot for your reply. I'll go back to Struts2 with DOJO or JQuery.
 
Larry Sellers
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Merrill Higginson wrote:I can understand mixing frameworks if they each offer something different (Struts with Spring/Hibernate for example). What I don't understand is wanting to use two presentation frameworks such as JSF and Struts that both do the same job. As I see it this makes things unnecessarily complicated and gives you nothing in return. My advice is to pick a presentation framework and stick with it.


I know this is an old post but I just wanted to clarify in case anyone else ended up here like I did.

There is a big difference between JSF and Struts2. JSF and Struts2 are not really "presentation frameworks". JSF is a component based framework and struts2 is not.

The motivation for mixing struts2 with jsf/richfaces is to use ajax features of richfaces that run on top of the JSF component based framework. Struts2 is not a component based framework and there are no component tags for a rich user experience. If you want things like a calendar, tabs, sliders.... etc, you have to find them or make them yourself with javascript or something.

Since I think struts2 rocks and is better than JSF , you can still use the struts2 framework with its cool interceptors and all, but integrate JSF components so you have access to richfaces nice ajax components.
 
Ankit Garg
Sheriff
Posts: 9529
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Null Ptr please check your private messages for some administrative matter...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic