SelectionField Component Index Timer

Setvar
org.apache.tapestry.wml.Setvar
Non Visual Component
 
Description
The wml:Setvar component specifies the variable to set in the current browser context as a side effect of executing a task such as <go>, <prev>, or <refresh>.
See Also
wml:Go
Parameters
Name Type Direction Required Default Description
name String in yes   The name attribute specifies a WML variable name.
value String custom yes   Bind value to the variable that should recieve the user input string.

Body: removed
Informal parameters: allowed
Reserved parameters: none

Example

Template

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml12.dtd">

<wml>

<card id="Hello" title="Hello">
 <onevent type="onenterforward">
  <refresh>
   <setvar jwcid="@wml:Setvar" name="username" value="ognl:username"/>
  </refresh>
 </onevent>
 <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>

 

SelectionField Component Index Timer