Apache
  Home arrow Apache arrow Page 5 - Apache Tapestry 4 Tutorial
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
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: starstarstarstarstar / 149
    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:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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


    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.



     
     
    >>> More Apache Articles          >>> More By Alexander Kolesnikov
     

       

    APACHE ARTICLES

    - Creating a VAMP (Vista, Apache, MySQL, PHP) ...
    - 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...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT