| Author |
Do you recommend the integration with other frameworks?
|
Leandro Coutinho
Ranch Hand
Joined: Mar 04, 2009
Posts: 415
|
|
Hi!
Do you recommend the integration with other frameworks? The two that I would like to know are: Struts and Spring
Or no, the integration doesn't worth all the problems that might result, and the developer should choose one of them?
Thanks in advance!
|
 |
Jason Porter
Ranch Hand
Joined: Apr 26, 2007
Posts: 120
|
|
|
From my experience I'd say Struts + JSF isn't worth it, pick one. The Spring + JSF should work just fine and have decent integration (though with CDI, what would you need Spring for, beside using it simply as a library?)
|
 |
Leandro Coutinho
Ranch Hand
Joined: Mar 04, 2009
Posts: 415
|
|
Thanks Porter!
I didn't know what's CDI. So here is a link for those that also might not know: http://java.dzone.com/articles/contexts-and-dependency
|
 |
Marco Ehrentreich
best scout
Bartender
Joined: Mar 07, 2007
Posts: 1220
|
|
I think Jason is right. You shouldn't try to mix as many frameworks as possible if you don't have a real need for it, that is it doesn't offer you something already have.
Moreover you shouldn't only consider the features of a single framework like JSF but also the integration possibilities and benefits when used together as part of a full application stack like JEE 6. In my opinion that's what lot of people don't see. At first it may be more complex and everything seems to be overwhelming if you're new to that technology but in the long run you can get more productive if you use a fully integrated framework where all parts play well together and save you a lot of plumbing code.
Of course this does not mean that you should always use a full enterprise application framework when all you need are some dynamic web pages
Marco
|
 |
Vyas Sanzgiri
Ranch Hand
Joined: Jun 16, 2007
Posts: 686
|
|
|
I am guessing by searching around with CDI that you might need some libraries for CDI to work on Tomcat?
|
===Vyas Sanzgiri===
My Blog
|
 |
Lincoln Baxter
Greenhorn
Joined: Aug 25, 2008
Posts: 24
|
|
|
if you want to use CDI on tomcat, take a look at JBoss Weld
|
Lincoln Baxter, III | [url]http://ocpsoft.com/[/url] | Creator of: PrettyFaces - Bookmarks, Navigation, and Dynamic Parameters for JSF
|
 |
Dan Allen
Author
Ranch Hand
Joined: Mar 05, 2003
Posts: 164
|
|
|
Weld provides an uberjar (single JAR) that provides everything you need to use CDI in a servlet container (such as Tomcat or Jetty). The best way to get started with CDI (whether in a servlet container or Java EE application server) is to start with the Maven 2 archetypes provided as part of the Weld project: http://seamframework.org/Documentation/WeldQuickstartForMavenUsers
|
Dan Allen | http://mojavelinux.com | Author of Seam in Action - http://mojavelinux.com/seaminaction
|
 |
 |
|
|
subject: Do you recommend the integration with other frameworks?
|
|
|