| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright 2004 The Apache Software Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- $Id$ --> |
| <!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="org.apache.tapestry.wap.quiz.Home"> |
| |
| <component id="username" type="wml:Postfield"> |
| <binding name="value" expression="username"/> |
| <binding name="name" expression="components.userInput.name"/> |
| </component> |
| |
| <component id="level" type="wml:SelectionField"> |
| <binding name="value" expression="level"/> |
| <binding name="model" expression="components.selectLevel.model"/> |
| <binding name="name" expression="components.selectLevel.name"/> |
| </component> |
| |
| <component id="userInput" type="wml:Input"> |
| <static-binding name="name">username</static-binding> |
| <binding name="value" expression="username"/> |
| </component> |
| |
| <component id="selectLevel" type="wml:PropertySelection"> |
| <static-binding name="name">level</static-binding> |
| <binding name="model" expression="@org.apache.tapestry.wap.quiz.Home@LEVEL_MODEL"/> |
| </component> |
| |
| <component id="go" type="wml:Go"> |
| <binding name="stateful" expression="false"/> |
| <binding name="listener" expression="listeners.start"/> |
| </component> |
| |
| <context-asset name="logo" path="images/logo.wbmp"/> |
| |
| <property-specification name="username" type="java.lang.String" persistent="yes"/> |
| <property-specification name="level" type="java.lang.String" persistent="yes" initial-value='"easy"'/> |
| |
| </page-specification> |