CVS: TapestryBook/examples/context UploadResults.html,NONE,1.1 Upload.html,NONE,1.1 Dates2.html,NONE,1.1 Register.html,1.1,1.2 Home.html,1.3,1.4

Howard Lewis Ship <[email protected]> Mon, 03 Mar 2003 17:13:13 -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-serv3222/examples/context

Modified Files:
	Register.html Home.html 
Added Files:
	UploadResults.html Upload.html Dates2.html 
Log Message:
Add new examples for Upload and DatePicker.

--- NEW FILE: UploadResults.html ---
<html jwcid="@Shell" title="Uploaded File">
<body jwcid="@Body">

<table border="0">
<tr>
	<th>Name:</th>
	<td><span jwcid="@Insert" value="[[ file.fileName]]">File Name</span></td>	
</tr>

<tr>
	<th>Path:</th>
	<td><span jwcid="@Insert" value="[[ file.filePath ]]">File Path</span></td>
</tr>

<tr>
	<th>Content Type:</th>
	<td><span jwcid="@Insert" value="[[ file.contentType ]]">text/html</span></td>
</tr>

<tr>
	<th>Content:</th>	
</tr>
	
</table>

<pre>
<span jwcid="@Delegator" delegate="[[ contentRenderer ]]"/>
</pre>

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


</body>
</html>
--- NEW FILE: Upload.html ---
<html jwcid="@Shell" title="File Upload">
<body jwcid="@Body">

<form jwcid="@Form" listener="[[ listeners.formSubmit ]]">
File to upload:
<br/>
<input type="file" jwcid="@Upload" file="[[ file ]]"/>
<br/>
<input type="submit" value="Upload"/>
	
</form>

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


</body>
</html>
--- NEW FILE: Dates2.html ---
<html jwcid="@Shell" title="Date Input" stylesheet="[[ assets.stylesheet ]]">
<head jwcid="$remove$">
<link rel="stylesheet" type="text/css" href="css/style.css"/>	
</head>
<body jwcid="@Body">
	
<span class="title">Enter a Range of Dates</span>

<p>Please enter a range of dates.  
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" displayName="Start Date" 
	field="[[ components.inputStart ]]">Start Date</span></th>
<td><input type="text" jwcid="inputStart" size="10"/>
	<span class="required-marker">*</span>
<span jwcid="@Conditional" condition="[[ beans.delegate.inError ]]">
	<img src="images/field-error.png"/>
</span>	
</td>
</tr>

<tr>
<th><span jwcid="@FieldLabel" displayName="End Date" field="[[ components.inputEnd ]]">End Date</span></th>
<td><input type="text" jwcid="inputEnd" size="10"/>
	<span class="required-marker">*</span>
<span jwcid="@Conditional" condition="[[ beans.delegate.inError ]]">
	<img src="images/field-error.png"/>
</span>	
</td>
</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: Register.html
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/context/Register.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Register.html	28 Feb 2003 00:25:43 -0000	1.1
--- Register.html	4 Mar 2003 01:13:10 -0000	1.2
***************
*** 16,20 ****
  <tr valign="top">
  <td>
! <IMG height=52 alt=[Error] src="images/form-error.png" width=52>	
  </td>
  <td>
--- 16,20 ----
  <tr valign="top">
  <td>
! <IMG height="52" alt="[Error]" src="images/form-error.png" width="52">	
  </td>
  <td>

Index: Home.html
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/context/Home.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Home.html	2 Mar 2003 22:56:19 -0000	1.3
--- Home.html	4 Mar 2003 01:13:11 -0000	1.4
***************
*** 11,17 ****
  <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>
! <li><a href="#" jwcid="@PageLink" page="Dates">Dates</a> (ValidField, date input, form level consistency checks)</li>
  </ul>
  
--- 11,19 ----
  <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>
! <li><a href="#" jwcid="@PageLink" page="Dates">Dates</a> ValidField, date input, form level consistency checks</li>
! <li><a href="#" jwcid="@PageLink" page="Upload">Upload</a> File upload</li>
! <li><a href="#" jwcid="@PageLink" page="Dates2">Dates2</a> Use of DatePicker and validation</li>
  </ul>
  



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com