Example
This example is the first part of the Hello world example.
Template
<?xml version="1.0" encoding="iso-8859-1"
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card jwcid="wml:Card"
id="Hello" title="ognl:@org.apache.tapestry.wap.hello.Home@TITLE">
<p>
What is your name?
<input jwcid="userInput@wml:Input"
name="username" value="ognl:username"/>
</p>
<do type="accept" label="Accept">
<go jwcid="go@wml:Go"
stateful="ognl:false" listener="ognl:listeners.submit">
<postfield jwcid="username@wml:Postfield"
name="ognl:components.userInput.name" value="ognl:username"/>
</go>
</do>
</card>
</wml>
Specification
<page-specification class="org.apache.tapestry.wap.hello.Home">
<property-specification name="username" type="java.lang.String"
persistent="yes"/>
</page-specification>
|