Apache
  Home arrow Apache arrow Page 2 - Creating Your First Tapestry Project
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

Creating Your First Tapestry Project
By: Alexander Kolesnikov
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 31
    2007-04-17

    Table of Contents:
  • Creating Your First Tapestry Project
  • Adding Tapestry
  • Deployment descriptor
  • The First Tapestry Page

  • 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Creating Your First Tapestry Project - Adding Tapestry
    (Page 2 of 4 )

    So far, we have dealt with a generic Java Web application. Now we are going to add Tapestry. Basically, Tapestry is just a set of libraries that bring with them a lot of important and useful functionality.

    One way to obtain these libraries is to go to the Tapestry website (http://tapestry.apache.org/download.html) and download a binary package acceptable for your platform. I recommend that you choose version 4.1.1. Although it is stated that it is "still undergoing lots of active development," it is also considered to be "stable enough." The downside of this approach, i.e. downloading the libraries from the Tapestry website, is that the libraries are packaged in a somewhat inconvenient way -- every single library is put into a separate subfolder.

    For our purposes, it will be more convenient to put all the JAR files together into one folder. You can repackage them yourself, or you can simply download the package that I have already created for you; please go to the beginning of this article and click on the appropriate link.

    Unpack the libraries into some folder on your hard drive. In my case, I have put them all into the tapestry41 folder in my home directory.

    Now, if you expand the Libraries folder in the Projects view of your NetBeans IDE, you will see that it already contains JDK and Bundled Tomcat libraries. Right-click (or Ctrl-click on a Mac) on the Libraries folder and choose Add Library... The Add Library dialog will appear, similar to this one:

    We don't have any Tapestry libraries here yet, so we need to add one. Press the Manage Libraries... button. The Library Manager dialog will open as shown below:

    Now press the New Library... button and in the dialog that opens, enter a name for the new library, such as Tapestry41. Press OK.

    Back in the Library Manager, make sure that the name of the new library is selected in the Libraries view on the left side and press the Add JAR/Folder... button. In the Browse Jar/Folder dialog that opens, navigate to the folder where you have unpacked all the Tapestry-related JAR files and select them all, then press the Add JAR/Folder button. Yes, I know, it's too many dialogs and buttons for such a simple operation, but we need to do this only once; any other projects you create in the same IDE will simply make use of this new library. The final result should look like this:

    Press OK and then, back in the Add Library dialog, choose the newly added library and press the Add Library button. Phew... A bunch of files gets added to the Libraries folder of your project and now, not only is the IDE aware of all the classes you will need for Tapestry development, but these libraries will also be packed into the final package with the application we are going to create.

    More Apache Articles
    More By Alexander Kolesnikov


       · Didn't have any questions on installation etc. so far. But please note I am always...
       · Just wanted you to know that this tutorial series is exactly what I was looking for...
       · Thanks a lot! :))Please let me know if you will find that something is not very...
       · First than everything, thanks for your tutorial is clear and straightforward, I...
       · As your Home.page file looks okay, I would guess that your problem is the result of...
       · Just wanted to appreciate you for this good tutorial. This is my first framework and...
       · Thank you. Tapestry is an excellent choice. The more I work with it, the more I...
       · Hi-I get an exception after I hit F6 for the FirstTapestry...
       · Judging by the message, you don't have some of the libraries on the classpath. The...
       · Ah, thats where it is! Thanks for the help.
       · I find that the titles of the articles can be slightly misleading. Say, 'Creating...
       · first of all i thank to this article...This helps me a lot...my doubt is i...
       · As for dynamic output, first of all recheck your code. This should be quite easy at...
       · Oh, by the way, which exception are you getting? Please post any output here.
       · so i instlled NetBeans but it did not come with tomcat. so i went and got tomcat on...
       · i have figured it out so please ignore my last questions ut there will undoubtedly...
       · Hello, Alexander!First of all, sorry for my English, unfortunately I`ve had no...
       · Hi all! And that is my exception:Thanks for helpHTTP Status 500 -...
       · hi all.I had some problems with that too. My exception:type Exception...
       · Would you let us know how do this in Netbeans 6?
       · It all works well in NetBeans 5.51 now I got this error message:HTTP Status 500 -...
     

       

    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




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