Apache
  Home arrow Apache arrow Page 5 - Apache Tapestry 4 Tutorial
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
APACHE

Apache Tapestry 4 Tutorial
By: Alexander Kolesnikov
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 113
    2007-04-03

    Table of Contents:
  • Apache Tapestry 4 Tutorial
  • JavaServer Pages came to the rescue
  • The Holy Trinity of software development
  • Why Tapestry?
  • Tapestry and prejudices

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    PCmover - $15 Off with Coupon Code CJPH7Q

    Apache Tapestry 4 Tutorial - Tapestry and prejudices
    (Page 5 of 5 )

    Prejudice 1: Tapestry has a steep learning curve.

    Well, it does, in some sense. But the only reason for this steepness is that Tapestry's documentation is incomplete and there are very few sources of information about it.

    In fact, the only book on Tapestry that I would wholeheartedly recommend is "Enjoy Web Development with Tapestry" by Kent Tong (http://www.agileskills2.org/EWDT/index.html). This book helped me enormously when I was learning Tapestry 3; it is regularly updated, so now it is available for Tapestry 4.1. You can download the first four chapters of this book for free. 

    In order for a software solution to become popular, a number of different sources of information are needed, written in different styles, and this is what Tapestry is missing. The book by Kent Tong is excellent, but it is very concentrated, and many people might find it hard to read and follow. I feel like a gentle introduction to Tapestry is needed, with plenty of time spent discussing different things and looking at them from different sides. And this is what I am going to create here.

    Prejudice 2: Tapestry is just another MVC framework. Why would we need yet another one when we already have Struts?

    This is completely wrong, as Tapestry is very different. It is much more advanced than Struts. If my reasoning in the previous sections didn't convince you, try to follow the coming chapters of this tutorial and see if they can do something for you.

    In fact, I find that Tapestry can be most difficult to understand for experienced Struts developers. This is because they are used to the peculiar Struts way of doing things and to the fact that there are several frameworks out there which are simply variations of the Struts approach.

    So a Struts developer, looking at Tapestry, tries to find some version of Action classes, familiar views and controller, some tags to stuff them into views, some extensive configuration files... There is even a book that tries to follow this approach ("Art of Java Web Development" by Neal Ford), but the result is just a misunderstanding.

    I think it might be important to understand that to achieve a clean separation of concerns, there is no need to literally embody the MVC pattern by putting all views into one room and all code into another room, and then writing an extensive configuration to keep track of them all. Tapestry is a good example of a creative and successful alternative approach to the problem. Its templates are similar to views, its page classes are similar to controllers...

    But you are definitely fed up with theory for now, aren't you? Let's go to practice then.

    What comes next?

    First of all, we shall need to have a working configuration of a few pieces of software that will enable Tapestry development. In fact, this configuration will be more or less the same as for any other kind of Java Web development: a Java Development Kit (JDK), an Integrated Development Environment (IDE) and a servlet container.

    The most popular approach is to use Eclipse as an IDE and I will give some pointers on creating an Eclipse-based configuration. But I have found that NetBeans IDE can provide an even shorter path from installation to deployment, so I am planning to make NetBeans the main tool for this tutorial. I know that there is a Tapestry module for NetBeans being developed, and we are going to adopt it at some point.

    We shall have a look at the standard structure of a Java Web application and how Tapestry applications reflect it. Finally, we shall build our first simple Tapestry application and discuss how and why it works.

    See you in the next article.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · Dear readers,Welcome to the world of Apache Tapestry. I am quite passionate...
       · Excellent article, Alexander. Difficult for me in parts, but at the leading edge....
       · But what exactly do you find difficult? I wonder if it can be written in such a way...
       · Great article pal:)I just went and bought that book under your advice and it...
       · I am referencing my Tapestry dissertation somewhere in the article. Normally, people...
       · Thanks, Rob,Just note that Kent Tong explains how to deal with "bare-bones"...
     

       

    APACHE ARTICLES

    - Putting Apache in Jail
    - Containing Intrusions in Apache
    - Server Limits for Apache Security
    - Setting Permissions in Apache
    - Installing Apache
    - Apache Installation and Configuration
    - Apache Tapestry and Custom Components: DateI...
    - Tapestry and AJAX: Autocompleter and InlineE...
    - PropertySelection and IPropertySelectionMode...
    - The DatePicker and Shell Components of Apach...
    - Apache Tapestry: ASO and More Components
    - Apache Tapestry and DirectLink, IoC and DI
    - Making a CelebrityCollector with Apache Tape...
    - Apache Tapestry and Listener Methods, Condit...
    - The Properties of Tapestry Pages

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway