Apache
  Home arrow Apache arrow Page 3 - Apache Tapestry: ASO and More Componen...
FaxWave - Free Trial.
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: ASO and More Components
By: Alexander Kolesnikov
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 12
    2007-05-21

    Table of Contents:
  • Apache Tapestry: ASO and More Components
  • Creating hivemodule.xml
  • AddCelebrity page
  • Creating the template with new components
  • Continuing to configure the application

  • 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

    Apache Tapestry: ASO and More Components - AddCelebrity page
    (Page 3 of 5 )

    You have already had substantial experience with creating Tapestry pages, so my instructions will be brief: create all three files, AddCelebrity.html, AddCelebrity.page and AddCelebrity.java.

    As we shall certainly need to use the DataSource, create an abstract getter for it with an appropriate annotation, as we did this in the previous section.

    Now let's work on the mock up. Let the page look similar to this:

    If you are curious as to why I've created these 'Gender' radio buttons, the purpose is to decide how to spell the occupation in case the 'Actor/Actress' option was selected. If it is a man, he will be recorded as an 'Actor,' and vice versa. It's not the best design, I agree, but it allows me to introduce you to two components: RadioGroup and PropertySelection.

    Here is the source for the mock up:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

     

    <html>

      <head>

        <title>Add New Celebrity</title>

      </head>

      <body>

          <h1>Add New Celebrity</h1>

         

          <form>

              <table cellpadding="5">

                  <tr>

                      <td>First Name:</td>

                      <td>

                          <input type="text"/>

                      </td>

                  </tr>

                  <tr>

                      <td>Last Name:</td>

                      <td>

                          <input type="text"/>

                      </td>

                  </tr>

                  <tr>

                      <td>Date of Birth:</td>

                      <td>

                          <input type="text"/>

                      </td>

                  </tr>

                  <tr>

                      <td colspan="2">

                          <fieldset>

                              <legend>Gender</legend>

                              <input type="radio" name="gender"

                                      value="M"> Male &nbsp;&nbsp;

                              <input type="radio" name="gender"

                                      value="F"> Female

                          </fieldset>

                      </td>

                  </tr>

                  <tr>

                      <td>Occupation:</td>

                      <td>

                          <select>

                              <option>Actor/Actress</option>

                              <option>Wine-maker</option>

                              <option>Programmer</option>

                          </select>

                      </td>

                  </tr>

                  <tr>

                      <td align="center" colspan="2">

                          <input type="submit" value="Submit"/>

                      </td>

                  </tr>

              </table>

          </form>

      </body>

    </html>

    More Apache Articles
    More By Alexander Kolesnikov


       · i have not so much experience with tapestry but i love it more than anything else. ...
       · Application State Objects are very useful in any Tapestry application. This issue...
       · Thank you very much! I am writing an issue on AJAX components by the way, and I am...
       · I have completed all this series of Tapestry tutorial in just two days and now I...
       · Thats great, but the tutorial is very far from completion :)The most interesting...
       · you mean issue 14 is online??? it is super! wow!!! but i didn found it:)I'm fan...
       · No, this means I have submitted it to the publisher :)It takes some time to edit...
       · :( I'm risking to ask you about new components. May I?Is it possible in an...
       · I am not sure what you want to achieve, but one solution would be to have a method...
       · Sorry, but DevShed delays the publication of the four issues I have already...
       · OK, so i have another error and i just can not figure it out. it says:"Unable to...
       · OK, I figured it out. The source read .Home instead of .AddCelebrity. Sometimes,...
       · Hi! Is there an alternative to using @InjectState? just like instead of @InjectPage,...
     

       

    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 1 hosted by Hostway