• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts2 with JSF and RichFace

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Thanks alot for your reply. I'll go back to Struts2 with DOJO or JQuery.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Null Ptr please check your private messages for some administrative matter...
 
Don't MAKE me come back there with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic