This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSF and the fly likes To the authors: JSF & the other frameworks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "To the authors: JSF & the other frameworks" Watch "To the authors: JSF & the other frameworks" New topic
Author

To the authors: JSF & the other frameworks

Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4926
    
  10

there are so many web application frameworks that it becomes hard to know them all good.

at my company we use struts and i know that JSF is better (from the posts here on the forum and that you have to use it for new projects and keep to struts for the already struts one)

but what with spring, shale, tapestry, webwork, ... ?

and what's the learning effort to go from struts to JSF ?

and how easy it is to use/implement that other "hype" of the moment (AJAX) with Struts, JSF,...


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Chris Schalk
author
Ranch Hand

Joined: Aug 31, 2006
Posts: 62
Roel,

"...but what with spring, shale, tapestry, webwork, ... ?"

Since JSF is Java, you can work with any other Java based framework - Spring, Hibernate. Shale also works well with JSF. Tapestry and Webwork are more Web ui frameworks more akin to JSF, so it is best to evaluate JSF with these and see which one suits you best.

"and what's the learning effort to go from struts to JSF ?"

I originally was very comfortable with Struts and found moving into JSF a pleasant experience. I would say anyone who knows Struts can easily learn JSF.


"and how easy it is to use/implement that other "hype" of the moment (AJAX) with Struts, JSF,..."

This is obviously a hot area and we have provided some intro coverage of how to build custom JSF components that use AJAX. However the world of AJAX is continuing to evolve and there are now AJAX JavaScript toolkits such as DOJO that simplify AJAX but purely from a JavaScript perspective.. There is even an OpenAJAX initiative that is looking to provide interoperability between the various JavaScript based AJAX toolkits.. From a JSF perspective, this is all good because JSF components can render any markup, be it homegrown basic JavaScript or sophisticated JavaScript code coming from a 3rd party. In either case JSF is agnostic and will support this - actually it will make it easier to use by hiding the complexities to the end users. JMaki is a good example of this approach..

-Chris
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Shale is a modern web application framework, fundamentally based on JavaServer Faces, and focused on improving ease of use for developers adopting JSF as a foundational technology in their own development environments. - From Shale Apache
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4926
    
  10

one other more specific question: i saw that JSF has also input validation as one of its features.

Is it comparable to the Validation Framework you can use with Struts? Or could you maybe use that same framework also in JSF ?

Is there some example-app available that can be run in a Tomcat 5.0 without much configuration and show some basic (and fancy) features of JSF?
[ September 13, 2006: Message edited by: Roel De Nijs ]
Fintan Conway
Ranch Hand

Joined: Apr 03, 2002
Posts: 141
Originally posted by Roel De Nijs:
Is there some example-app available that can be run in a Tomcat 5.0 without much configuration and show some basic (and fancy) features of JSF?


Hi Roel,

Take a look at My Faces examples for examples of JSF components (including validation) that come with My Faces. You can also view the source that produced the examples.

Regards,

Fintan
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2771
    
  10

Is JSF development usually a "by hand" effort or are tools necessary? My one experience with JSF was a tutorial done on Rational Application Developer. I was impressed with what it could do and how easy it was ... but it didn't quite work, and I was left with no idea how to fix it. I tried again from scratch and it worked better, but not perfectly. I even loaded the solution that came with the tutorial and found that it too had minor flaws that, again, I had no idea how to isolate and fix.

My point: is JSF so exceedingly complex that details have to be hidden from the developers like in Microsoft style development? I'm leery of technologies that allow the rapid development of pretty applications by people who don't understand what they're doing.
Chris Schalk
author
Ranch Hand

Joined: Aug 31, 2006
Posts: 62
Greg,

It can be both.. You can use a tool or do it entirely by hand if you want..
This point was brought I think several times yesterday.
-Chris
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Roel De Nijs:
Is it comparable to the Validation Framework you can use with Struts? Or could you maybe use that same framework also in JSF ?


The Struts validation framework is now brought into jakarata commons. You can use that with JSF or any other framework. I have used that with JSF and now using it with Spring.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4926
    
  10

OK, i'm convinced so let me win the book so i can get started
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To the authors: JSF & the other frameworks
 
Similar Threads
On JavaServerFaces
JSF is it ready for prime time?
Struts & JSF Tag Library
To the Authors - Why JSF?
jsf, struts vs other frameworks