Do Component Index Image

wml:Go
org.apache.tapestry.wml.Go
Non Visual Component
 
Description
The wml:Go component represents the action of switching to a new card.
See Also
wml:Input, wml:PropertySelection, wml:Select
Parameters
Name Type Direction Required Default Description
method String in yes   The method used by the form when it is submitted, defaults to POST.
listener IActionListener in no   Object invoked when the form is submitted, after all form components have responded to the submission.
stateful boolean custom no   If true (the default), then an active HttpSession is required.
direct boolean in no   If true (the default), then the more efficient direct service is used. If false, then the action service is used.

Body: removed
Informal parameters: allowed
Reserved parameters: href

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>


Do Component Index Image