CVS: TapestryBook/examples/context Login.html,NONE,1.1 Home.html,NONE,1.1 ToDo.html,NONE,1.1 Toppings.html,NONE,1.1 Main.html,NONE,1.1 TextField1.html,NONE,1.1 ToppingsResult.html,NONE,1.1
Howard Lewis Ship <[email protected]> Thu, 20 Feb 2003 07:13:54 -0800
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/TapestryBook/examples/context
In directory sc8-pr-cvs1:/tmp/cvs-serv16370/examples/context
Added Files:
Login.html Home.html ToDo.html Toppings.html Main.html
TextField1.html ToppingsResult.html
Log Message:
Checkpoint.
--- NEW FILE: Login.html ---
<html jwcid="@Shell" title="Login">
<body jwcid="@Body">
<span jwcid="@Conditional" condition="[[ message ]]">
<font color="red">
<span jwcid="@Insert" value="[[ message ]]">
Error Message
</span>
</font>
</span>
<p/>
<form jwcid="@Form" listener="[[ listeners.login ]]">
<table>
<tr>
<th>User Name:</th>
<td>
<input type="text" jwcid="@TextField"
value="[[ userName ]]"
size="30"/></td>
</tr>
<tr>
<th>Password:</th>
<td>
<input type="password" jwcid="@TextField"
value="[[ password ]]"
hidden="[[ true ]]"
size="30"/>
</td>
</tr>
<tr>
<td><input type="submit" value="Login"/></td>
</tr>
</table>
</form>
<hr/>
<p><a href="#" jwcid="@PageLink" page="Home">Return to Home page</a>.</p>
</body>
</html>
--- NEW FILE: Home.html ---
<html jwcid="@Shell" title="Examples Home">
<body jwcid="@Body">
<p>Examples from the book:</p>
<ul>
<li><a href="#" jwcid="@PageLink" page="Login">Login Form</a></li>
<li><a href="#" jwcid="@PageLink" page="TextField1">TextField with synthetic property</a></li>
<li><a href="#" jwcid="@PageLink" page="Toppings">Select and Option components</a></li>
<li><a href="#" jwcid="@PageLink" page="ToDo">Submit component</a></li>
</ul>
</body>
</html>
--- NEW FILE: ToDo.html ---
<html jwcid="@Shell" title="ToDo List">
<body jwcid="@Body">
<form jwcid="@Form" listener="[[ listeners.formSubmit ]]">
<table>
<tr>
<th>Done</th>
<th>Title</th>
<th colspan="2">Reorder</th>
</tr>
<tr jwcid="@Foreach" element="tr" source="[[ toDoList ]]" value="[[ item ]]">
<td><input type="checkbox" jwcid="@Checkbox" selected="[[ item.completed ]]"/></td>
<td><input type="text" jwcid="@TextField" size="50" value="[[ item.title ]]"/></td>
<td><input type="submit" jwcid="@Submit" listener="[[ listeners.moveUp ]]" label="Move Up"/></td>
<td><input type="submit" jwcid="@Submit" listener="[[ listeners.moveDown ]]" label="Move Down"/></td>
</tr>
</table>
<input type="submit" value="Update"/>
<input type="submit" jwcid="@Submit" listener="[[ listeners.addTodoItem ]]" label="Add Item"/>
<input type="submit" jwcid="@Submit" listener="[[ listeners.deleteCompleted ]]" label="Delete Completed"/>
</form>
<hr/>
<p><a href="#" jwcid="@PageLink" page="Home">Return to Home page</a>.</p>
</body>
</html>
--- NEW FILE: Toppings.html ---
<html jwcid="@Shell" title="Toppings">
<body jwcid="@Body">
<form jwcid="@Form" listener="[[ listeners.selectToppings ]]">
Select toppings:
<select jwcid="@Select" multiple="[[ true ]]">
<span jwcid="@Foreach"
source="[[ toppings ]]"
value="[[ topping ]]">
<option jwcid="@Option"
selected="[[ toppingSelected ]]"
label="[[ topping ]]"/>
</span>
</select>
<br/>
<input type="submit" value="Select"/>
</form>
<hr/>
<p><a href="#" jwcid="@PageLink" page="Home">Return to Home page</a>.</p>
</body>
</html>
--- NEW FILE: Main.html ---
<html jwcid="@Shell" title="Main">
<body jwcid="@Body">
<p>That demonstrated a very basic form. You may
<a href="#" jwcid="@PageLink" page="Home">return to the Home page</a>.</p>
</body>
</html>
--- NEW FILE: TextField1.html ---
<html jwcid="@Shell" title="TextField with Synthetic Property">
<body jwcid="@Body">
<p>This page demonstrates how to use a TextField component and a synthetic property
to handle conversions between numbers and strings.</p>
<span jwcid="@Conditional" condition="[[ errorMessage ]]">
<font color="red">
<span jwcid="@Insert" value="[[ errorMessage ]]">
Error Message
</span>
</font>
</span>
<form jwcid="@Form">
Text field: <input type="text" jwcid="@TextField" value="[[ stringProperty ]]"/>
<br/>
<input type="submit" value="OK"/>
</form>
<p>
Real property: <span jwcid="@Insert" value="[[ realProperty ]]">Unknown</span>
</p>
<hr/>
<p><a href="#" jwcid="@PageLink" page="Home">Return to Home page</a>.</p>
</body>
</html>
--- NEW FILE: ToppingsResult.html ---
<html jwcid="@Shell" title="Toppings Result">
<body jwcid="@Body">
<p>You selected: <span jwcid="@Insert" value="[[ toppings ]]">some toppings</span></p>
<hr/>
<p><a href="#" jwcid="@PageLink" page="Home">Return to Home page</a>.</p>
</body>
</html>
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge