It's not a secret anymore!*
The moose likes Struts and the fly likes Struts2 with JSF and RichFace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 with JSF and RichFace" Watch "Struts2 with JSF and RichFace" New topic
Author

Struts2 with JSF and RichFace

moh sak
Ranch Hand

Joined: May 11, 2005
Posts: 78
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
moh sak
Ranch Hand

Joined: May 11, 2005
Posts: 78
Hello,

Thanks alot for your reply. I'll go back to Struts2 with DOJO or JQuery.
Larry Sellers
Greenhorn

Joined: Aug 31, 2009
Posts: 2
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

Joined: Aug 03, 2008
Posts: 9291
    
  17

Null Ptr please check your private messages for some administrative matter...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 with JSF and RichFace
 
Similar Threads
editable grid support in Struts2
ModelDriven in struts2
JSF Datatable equivalent in Struts2
struts2 vs jsf
JSF integration with Struts2