CVS: TapestryBook/examples/context RegisterConfirm.html,NONE,1.1 Register2.html,NONE,1.1 ToDo2.html,NONE,1.1 ToDo3.html,NONE,1.1 Register.html,NONE,1.1 Home.html,1.1,1.2 ToDo.html,1.1,1.2 Toppings.html,1.1,1.2 TextField1.html,1.1,1.2

Howard Lewis Ship <[email protected]> Thu, 27 Feb 2003 16:26:16 -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-serv10808/examples/context

Modified Files:
	Home.html ToDo.html Toppings.html TextField1.html 
Added Files:
	RegisterConfirm.html Register2.html ToDo2.html ToDo3.html 
	Register.html 
Log Message:
Checkpoint; pretty  much done with chapter 3.

--- NEW FILE: RegisterConfirm.html ---
<html jwcid="@Shell" title="Registration Confirmation" stylesheet="[[ assets.stylesheet ]]">
<body jwcid="@Body">

<p>Thank you for registerring.  Here is the data your enterred:</p>

<br/>

<span jwcid="@Insert" value="[[ address.lastName ]]">Kent</span>,
<span jwcid="@Insert" value="[[ address.firstName ]]">Clark</span>
<br/>
<span jwcid="@Insert" value="[[ address.address1 ]]">One Gotham Way</span>

<span jwcid="@Conditional" condition="[[ address.address2 ]]">
<br/>
<span jwcid="@Insert" value="[[ address.address2 ]]">4th Floor</span>	
</span>

<br/>
<span jwcid="@Insert" value="[[ address.city ]]">Metropolis</span>,
<span jwcid="@Insert" value="[[ address.state ]]">DC</span>
<span jwcid="@Insert" value="[[ address.zip ]]">01234</span>

<hr/>
	
<p><a href="#" jwcid="@PageLink" page="Home">Return to Home page</a>.</p>



</body>
</html>
--- NEW FILE: Register2.html ---
<html jwcid="@Shell" title="Registration (Client Validation Enabled)" stylesheet="[[ assets.stylesheet ]]">
<head jwcid="$remove$">
<link rel="stylesheet" type="text/css" href="css/style.css"/>	
</head>
<body jwcid="@Body">
	
<span class="title">Registration</span>

<p>Please enter your mailing address for our records.  Fields marked with a <span class="required-marker">*</span>
are required.
</p>
	
<span jwcid="@Conditional" condition="[[ beans.delegate.hasErrors ]]">

<table class="error">
<tr valign="top">
<td>
<IMG height=52 alt=[Error] src="images/form-error.png" width=52>	
</td>
<td>
<span jwcid="@Delegator" delegate="[[ beans.delegate.firstError ]]">Error Message</span>	
</td>
</tr>

</table>

</span>

<form jwcid="@Form" listener="[[ listeners.formSubmit ]]" delegate="[[ beans.delegate ]]">
	
<table class="form">

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputFirstName ]]">First Name</span></th>
<td><input type="text" jwcid="inputFirstName" size="50"/></td>
</tr>

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputLastName ]]">Last Name</span></th>
<td><input type="text" jwcid="inputLastName" size="50"/></td>
</tr>

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputAddress1 ]]">Address</span></th>
<td><input type="text" jwcid="inputAddress1" size="50"/></td>
</tr>

<tr>
<td></td>
<td><input type="text" jwcid="@TextField" value="[[ address.address2 ]]" size="50"/></td>
</tr>

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputCity ]]">City</span></th>
<td><input type="text" jwcid="inputCity" size="50"/></td>
</tr>
<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputState ]]">State</span></th>
<td><input type="text" jwcid="inputState" size="2"/></td>
</tr>

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputZip ]]">Zip</span></th>
<td><input type="text" jwcid="inputZip" size="10"/>
</tr>

<tr>
<td></td>
<td><input type="image" src="images/continue.png" width="100" height="32"/>
</tr>

</table>
	
</form>

<hr/>
	
<p><a href="#" jwcid="@PageLink" page="Home">Return to Home page</a>.</p>



</body>
</html>
--- NEW FILE: ToDo2.html ---
<html jwcid="@Shell" title="ToDo List (version 2)">
<body jwcid="@Body">

<form jwcid="@Form" listener="[[ listeners.formSubmit ]]">
	
<table>
	<tr>
		<th>Done</th>
		<th>Priority</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><select jwcid="@PropertySelection" value="[[ item.priority ]]" model="[[ priorityModel ]]"/></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: ToDo3.html ---
<html jwcid="@Shell" title="ToDo List (version 3)">
<body jwcid="@Body">

<form jwcid="@Form" listener="[[ listeners.formSubmit ]]">
	
<table>
	<tr>
		<th>Done</th>
		<th>Priority</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><select jwcid="@PropertySelection" value="[[ item.priority ]]" model="[[ priorityModel ]]"/></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: Register.html ---
<html jwcid="@Shell" title="Registration" stylesheet="[[ assets.stylesheet ]]">
<head jwcid="$remove$">
<link rel="stylesheet" type="text/css" href="css/style.css"/>	
</head>
<body jwcid="@Body">
	
<span class="title">Registration</span>

<p>Please enter your mailing address for our records.  Fields marked with a <span class="required-marker">*</span>
are required.
</p>
	
<span jwcid="@Conditional" condition="[[ beans.delegate.hasErrors ]]">

<table class="error">
<tr valign="top">
<td>
<IMG height=52 alt=[Error] src="images/form-error.png" width=52>	
</td>
<td>
<span jwcid="@Delegator" delegate="[[ beans.delegate.firstError ]]">Error Message</span>	
</td>
</tr>

</table>

</span>

<form jwcid="@Form" listener="[[ listeners.formSubmit ]]" delegate="[[ beans.delegate ]]">
	
<table class="form">

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputFirstName ]]">First Name</span></th>
<td><input type="text" jwcid="inputFirstName" size="50"/></td>
</tr>

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputLastName ]]">Last Name</span></th>
<td><input type="text" jwcid="inputLastName" size="50"/></td>
</tr>

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputAddress1 ]]">Address</span></th>
<td><input type="text" jwcid="inputAddress1" size="50"/></td>
</tr>

<tr>
<td></td>
<td><input type="text" jwcid="@TextField" value="[[ address.address2 ]]" size="50"/></td>
</tr>

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputCity ]]">City</span></th>
<td><input type="text" jwcid="inputCity" size="50"/></td>
</tr>
<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputState ]]">State</span></th>
<td><input type="text" jwcid="inputState" size="2"/></td>
</tr>

<tr>
<th><span jwcid="@FieldLabel" field="[[ components.inputZip ]]">Zip</span></th>
<td><input type="text" jwcid="inputZip" size="10"/>
</tr>

<tr>
<td></td>
<td><input type="image" src="images/continue.png" width="100" height="32"/>
</tr>

</table>
	
</form>

<hr/>
	
<p><a href="#" jwcid="@PageLink" page="Home">Return to Home page</a>.</p>



</body>
</html>
Index: Home.html
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/context/Home.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Home.html	20 Feb 2003 15:13:52 -0000	1.1
--- Home.html	28 Feb 2003 00:25:43 -0000	1.2
***************
*** 8,12 ****
  <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>
  
--- 8,16 ----
  <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">To Do List (version 1)</a></li>
! <li><a href="#" jwcid="@PageLink" page="ToDo2">To Do List (version 2)</a></li>
! <li><a href="#" jwcid="@PageLink" page="ToDo3">To Do List (version 3)</a></li>
! <li><a href="#" jwcid="@PageLink" page="Register">Register</a> (ValidField example)</li>
! <li><a href="#" jwcid="@PageLink" page="Register2">Register2</a> (ValidField example, with client validation)</li>
  </ul>
  

Index: ToDo.html
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/context/ToDo.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ToDo.html	20 Feb 2003 15:13:52 -0000	1.1
--- ToDo.html	28 Feb 2003 00:25:43 -0000	1.2
***************
*** 8,12 ****
  		<th>Done</th>
  		<th>Title</th>
- 		
  		<th colspan="2">Reorder</th>
  	</tr>
--- 8,11 ----
***************
*** 24,28 ****
  
  </form>
- 
  
  <hr/>
--- 23,26 ----

Index: Toppings.html
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/context/Toppings.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Toppings.html	20 Feb 2003 15:13:52 -0000	1.1
--- Toppings.html	28 Feb 2003 00:25:43 -0000	1.2
***************
*** 7,11 ****
  <select jwcid="@Select" multiple="[[ true ]]">
    <span jwcid="@Foreach"
!     source="[[ toppings ]]"
      value="[[ topping ]]">
      <option jwcid="@Option"
--- 7,11 ----
  <select jwcid="@Select" multiple="[[ true ]]">
    <span jwcid="@Foreach"
!     source="[[ allToppings ]]"
      value="[[ topping ]]">
      <option jwcid="@Option"

Index: TextField1.html
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/context/TextField1.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TextField1.html	20 Feb 2003 15:13:52 -0000	1.1
--- TextField1.html	28 Feb 2003 00:25:43 -0000	1.2
***************
*** 16,20 ****
  <form jwcid="@Form">
  	
! Text field: <input type="text" jwcid="@TextField" value="[[ stringProperty ]]"/>
  <br/>
  <input type="submit" value="OK"/>
--- 16,20 ----
  <form jwcid="@Form">
  	
! Text field: <input type="text" jwcid="@TextField" value="[[ stringValue ]]"/>
  <br/>
  <input type="submit" value="OK"/>
***************
*** 23,27 ****
  
  <p>
! 	Real property: <span jwcid="@Insert" value="[[ realProperty ]]">Unknown</span>
  	</p>
  	
--- 23,27 ----
  
  <p>
! 	Real property: <span jwcid="@Insert" value="[[ intValue ]]">Unknown</span>
  	</p>
  	



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf