Summary

Definitions

Overview

Illustration 1

Illustration 2

Illustration 3
   -Page Template
   Page Specification
   Page Class
   Application Specification

The Framework - a flyby

Conclusion

Biography

Resources

Page Template
<html jwcid="@Shell" title="Welcome Page">
<body jwcid="@Body">
<form jwcid="@Form" listener="ognl:listeners.submit">
    Customer Name: <input jwcid="custName" type="text"/><br/>
    Date-of-Birth: <input jwcid="dob" type="text" format="MMM dd, yyyy"/>
        (Month DD, YYYY)<br/>
    <input type="submit" value="Submit"/>
</form>
</body>
</html>
Listing 7. CustInfo.html
<html>
<body>
    Hello <span jwcid="@Insert" value="ognl:custName"/>!
        Welcome to Tapestry!<br/>
    Your Date-of-Birth is <span jwcid="@Insert" value="ognl:dob"/>.<br/>
    <a href="#" jwcid="@PageLink" page="CustInfo">Next Customer</a>
</body>
</html>
Listing 8. Welcome.html
The components used here are all part of Tapestry's core library. For information on these components, please refer to the component reference. The point illustrated here is the flexibility available in declaraing components. Note that the implicit components, Shell, Body and Form, reside abreast the explicit components, custName and dob, in the same Page in perfect harmony. Also note that the format of date-of-birth field is configured in the template and the value is configured in the specification as shown in Listing 9.
<< Previous Next >>