Home.page.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE page-specification
PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<page-specification class="devguide.personalizedwelcome.Registration" |
| The page class here is a user defined class (devguide.personalizedwelcome.Registration). | ||||
| Definition of the transient property, user, to be created in the Registration class. The initial value of the property will be a new instance of the class User. | ||||
| Explicit component declaration.
| ||||
| Dynamic binding. The OGNL expression here is the name of the listener method, in the Registration class, to be invoked when the form is submitted.
| ||||
| Message binding. | ||||
| Static binding. | ||||
Welcome.page.
| The page class is shared between the Home page and the Welcome page. | ||||
| The dynamic OGNL expression.
| ||||
![]() | Note |
|---|---|
| The specification here does not specify the page template explicitly. Whenever the template is not specified, Tapestry assumes the template name to be the name of the page with the appropriate extension and the location is identified via a methodical search as specified in the DefaultTemplateSource. So here, Tapestry assumes the template name to be Home.html. | |