| By Rick Hightower | Article Rating: |
|
| September 20, 2004 12:00 AM EDT | Reads: |
42,128 |
I used AppFuse and Spring together extensibly on two projects earlier this year with a lot of success. I added Spring support before it was part of the AppFuse core (for my projects). I have a lot of respect for Matt Raible's opinions. Matt is an awesome, dedicated technologist. I don't agree with him about JSF.
My last project that I finished was JSF + Spring + Hibernate on Tomcat 5 similar to AppFuse foundation, but using JSF. Matt has done some JSF + Spring work for the Spring book, and for a client. JSF is not part of AppFuse yet. I think once it is, he might have a different opinion.
I really dig JSF. I found it a lot more productive than Struts. I was amazed how fast I could crank things out. At the time, I did the project the JSF Spring integration was not working well so I skipped it. I used a base class for my JSF backing beans that looked up their corresponding business delegates. Other than that road bump, things went really well. JSF exceeded my expectations.
Now I cheated a bit. I wrote a JSF course and taught it several times before I worked on a JSF project. I also worked on a few small iterations on a few projects before doing an entire project in JSF (small project but still). I also consulted and helped architect a few JSF applications before I wrote one on my own. So.my experience...
The learning curve may be stiffer for starting out. When I wrote the course there were not any good JSF books out yet. Writing a course is a good way to learn how to do things. I improved the course based on my project experience, re-reading the spec., and reading every JSF book published. David Geary's book is an excellent reference, and I highly recommend it.
So how did my first project with JSF go....? My guess is that the same project would have taken twice as long if I did it with Struts instead of JSF because it was a fairly rich application (custom sorting, post backs to populate list boxes, auto populate fields based on user actions, etc.). JSF is much more natural than Struts. I think WebWork, and Spring MVC are improvements on Struts Model 2 MVC, but I have been bitten by the event-driven bug. The only other framework I would consider using instead of JSF would be Tapestry. In short, I dig JSF.
Apparently it is popular to bash Sun and J2EE. JSF does not deserve it.
I still respect Matt's opinion, and I am very grateful for AppFuse.
For me the killer stack is JSF + Hibernate + Spring. The verdict is still out on Tapestry (I need more experience with it).
Related Links:
Published September 20, 2004 Reads 42,128
Copyright © 2004 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Rick Hightower
Rick Hightower serves as chief technology officer for ArcMind Inc. He is coauthor of the popular book Java Tools for Extreme Programming, which covers applying XP to J2EE development, and also recently co-authored Professional Struts. He has been working with J2EE since the very early days and lately has been working mostly with Maven, Spring, JSF and Hibernate. Rick is a big JSF and Spring fan. Rick has taught several workshops and training courses involving the Spring framework as well as worked on several projects consulting, mentoring and developing with the Spring framework. He blogs at http://jroller.com/page/RickHigh.
![]() |
Alexander Jesse 09/28/04 04:04:10 AM EDT | |||
Sounds great. Are there already JSF-applications put into production? I'd like to hear about them to convince my managers ;-) |
||||
![]() |
Chris 09/22/04 01:32:10 PM EDT | |||
Same as Greg. Yeah, what's the main advantages of JSF and Spring vs Struts? Struts is not just a bunch of JSP tags... |
||||
![]() |
Greg 09/22/04 01:00:12 PM EDT | |||
Thanks Rick for telling us that you like Struts. Unfortunatly you don't tell us anything more than that, so the whole conversation is rather shallow :( |
||||
![]() |
Craig Walls 09/22/04 08:58:36 AM EDT | |||
Although I'm not as high on JSF as Rick, I can say that the JSF-Spring integration is pretty good. The JSF-Spring project (jsf-spring.sourceforge.net) makes it possible for JSF-managed beans and Spring-managed beans to coexist. In fact, the integration significantly blurs the lines between Spring-managed and JSF-managed beans making it possible to configure JSF-managed beans in Spring's configuration files (to take advantage of Spring's Ioc and AOP features). |
||||
![]() |
Yakov Fain 09/22/04 08:00:58 AM EDT | |||
We are planning to publish an article in November's issue of JDJ on using JSF/Spring/Hibernate in a Pet Store application Yakov Fain, JDJ |
||||
![]() |
Harold Neiper 09/22/04 07:41:57 AM EDT | |||
Rick, Awesome! Given that I am starting my first Spring/JSF or JSF/Spring project, I was wondering if you had any suggestions towards the integration of these two technologies.?. I started following the discussions on Spring site with regards to the different camps on how to "glue" the two together, and given your working experience and knowledge on this subject it would be a great if you could share some of this wisdom. Regards, Harold |
||||
![]() |
98ghp2 09/22/04 04:46:27 AM EDT | |||
Thanks for this Rick! Reading in books all about how to use the JSF framework to build real-world web apps is one thing, hearing you say this here is somehow more real. |
||||
- It's the Java vs. C++ Shootout Revisited!
- Patterns for Building High Performance Applications
- Asynchronous Logging Using Spring
- Java for Programmers (2nd Edition)
- Cross-Platform Mobile Website Development – a Tool Comparison
- Three Buzzwords That Every CIO Hears but One They Should Listen To
- Write Once Run Anywhere or Cross Platform Mobile Development Tools
- Immersing into JavaScript Frameworks
- Workday Reportedly Prepping to Go Public
- Cloud Expo New York: The Java EE 7 Platform - Developing for the Cloud
- Book Review: Sams Teach Yourself Java in 24 Hours
- OpenOffice.com Lives
- Book Excerpt: Introducing HTML5
- Adobe Sends Flex to the Apache Foundation
- Five Years Waiting for JRE 7: Is It Justified? (Part 1)
- Book Excerpt: Java Application Profiling Tips and Tricks
- i-Technology in 2012: Five Industry Predictions
- It's the Java vs. C++ Shootout Revisited!
- Patterns for Building High Performance Applications
- OpenXava 4.3: Rapid Java Web Development
- The Next Web Architecture
- Asynchronous Logging Using Spring
- Java for Programmers (2nd Edition)
- Is Write Once Run Anywhere Ever Going to Be a Reality?
- A Cup of AJAX? Nay, Just Regular Java Please
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- JavaServer Faces (JSF) vs Struts
- The i-Technology Right Stuff
- Rich Internet Applications with Adobe Flex 2 and Java
- Java vs C++ "Shootout" Revisited
- Bean-Managed Persistence Using a Proxy List
- Reporting Made Easy with JasperReports and Hibernate
- Creating a Pet Store Application with JavaServer Faces, Spring, and Hibernate
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- What's New in Eclipse?
- i-Technology Predictions for 2007: Where's It All Headed?


















