File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Tapestry & JSF Comparison Tutorial Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Tapestry & JSF Comparison Tutorial" Watch "Tapestry & JSF Comparison Tutorial" New topic

Tapestry & JSF Comparison Tutorial

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Looking for comments.


GenRocket - Experts at Building Test Data
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
I looked at the JSF example in the article. At the same time, I tried imagining the equivalent tapestry4 code to achieve the same.
Somehow I feel that very few people would actually pick JSF after looking at the comparison ( just my personal opinion). What do you think? Would that be fair to JSF?. May be you should pick another example that demonstrates that JSF is superior to tapestry wrt some other aspect (if at all)...just an opinion.

Update: Ok i take it back. May be the users can decide for themselves as you point out. But some of the obvious observations like the absence of another indirection in the form of navigation rules, the most sighted reason of the template being viewable in any editor / browser and access to any model/bean without any explicit configuration (Ok hivemind if something needs to be maintained in session) made me feel that tapestry w'd be a clear winner wrt this use case.

Can you modify the example to include dynamic component creation? I mean we s'dnt know until run time what component actually needs to be rendered.
I mean something along the lines of

if(something) componentTree.add(new Button());
[ January 17, 2006: Message edited by: Karthik Guru ]
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Hi Gregg,

Sounds very useful, especially if you will be doing it in Tapestry 4.

(Posting here since your blog does not allow annonymous comments)

Alexander Kolesnikov
Ranch Hand

Joined: Feb 26, 2005
Posts: 99
It would be great to see such a comparison, Gregg. Especially because I am doing something like this for my dissertation - comparing side-by-side Tapestry, Struts and JSF. :roll:

Alexander Kolesnikov<br />Java Web Developer<br />SCJP 1.4, SCWCD 1.4, SCBCD 1.3<br /><a href="" target="_blank" rel="nofollow">Tapestry 5: Building Web Applications</a><br /><a href="" target="_blank" rel="nofollow">Java Drawing With Apache Batik</a>
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1130
Knowing the quality of your code, Gregg, I'm sure any tutorial you came up with would be excellent.

To make the tutorial useful, based on other ones I've seen, I think it should cover all the Tapestry controls. The last thing I want when picking a framework is a "MyFaces situation" (where the source code is the documentation!). A good tutorial that covers the main controls would be awesome.

Even a "non-tutorial" approach, a "cookbook" approach, would be good too (here is a control, here's how you use it in some context with some code). Since there are plenty of tutorials for Tapestry, as you pointed out, perhaps the cookbook "control by control example" approach would be even better. You could include a little shell "application" on top of which your cookbook examples would run.

Just my 2-cents. <s>

Hope this helps.

-- Mike
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302


I think that may require a series of tutorials, which wouldn't be a bad thing but I wonder if there isn't something like that already. I know MyFaces has that for JSF and all their controls in a downloable examples.war file.

I've got something in mind for my article and I'll be working on it this weekend.
I agree. Here's the link:
subject: Tapestry & JSF Comparison Tutorial
jQuery in Action, 3rd edition