CVS: Tapestry/examples/Tutorial/context/workbench Forms.html,NONE,1.1.2.1 FieldsResults.html,NONE,1.1.2.1 PaletteResults.html,NONE,1.1.2.1 Localization.html,NONE,1.1.2.1 popuplink-help.html,NONE,1.1.2.1 LocalizationChange.html,NONE,1.1.2.1 Redirect.html,NONE,1.1.2.1 Home.html,NONE,1.1.2.1 Table.html,NONE,1.1.2.1 UploadResults.html,NONE,1.1.2.1 Chart.html,NONE,1.1.2.1 Fields.html,NONE,1.1.2.1 Palette.html,NONE,1.1.2.1 LocalizationChange_it.html,NONE,1.1.2.1 Upload.html,NONE,1.1.2.1 Localization_it.html,NONE,1.1.2.1 .cvsignore,NONE,1.1.2.1 LocalizationChange_fr.html,NONE,1.1.2.1 Dates.html,NONE,1.1.2.1 LocalizationChange_de.html,NONE,1.1.2.1 ExceptionTab.html,NONE,1.1.2.1 Localization_fr.html,NONE,1.1.2.1 Localization_de.html,NONE,1.1.2.1

Howard Lewis Ship <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/Tapestry/examples/Tutorial/context/workbench
In directory sc8-pr-cvs1:/tmp/cvs-serv10583/examples/Tutorial/context/workbench

Added Files:
      Tag: hship-2-3
	Forms.html FieldsResults.html PaletteResults.html 
	Localization.html popuplink-help.html LocalizationChange.html 
	Redirect.html Home.html Table.html UploadResults.html 
	Chart.html Fields.html Palette.html LocalizationChange_it.html 
	Upload.html Localization_it.html .cvsignore 
	LocalizationChange_fr.html Dates.html 
	LocalizationChange_de.html ExceptionTab.html 
	Localization_fr.html Localization_de.html 
Log Message:
Reorganize the tutorials to use new 2.4 features.

--- NEW FILE: Forms.html ---
<!-- Forms.html,v 1.1 2002/08/23 22:18:31 hship Exp -->

<span jwcid="@Border">

This page is used to test some additional form elements.

<form jwcid="form">

<span jwcid="group">
	
<table>
	<tr valign="top">
	<td rowspan="4"><span key="favorite-color">Favorite Color</span>:</td>
	<td><input type="radio" jwcid="blue"/> <span key="blue">Blue</span></td>
	</tr>
	
	<tr>
	<td><input type="radio" jwcid="green"/> <span key="green">Green</span></td>
	</tr>
	
	<tr>
	<td><input type="radio" jwcid="red"/> <span key="red">Red</span></td>
	</tr>
	
	<tr>
	<td><input type="submit" value="Submit"></td>
	</tr>

</table>

</span>

</form>


<span jwcid="ifFavoriteColor">
<p>Your favorite color is: <span jwcid="insertFavoriteColor">Puce</span>.
</span>

</span>
--- NEW FILE: FieldsResults.html ---
<!-- $Id: FieldsResults.html,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $-->

<span jwcid="@Border">

<table>
	<tr>
		<th>Date Value</th>
		<td><span jwcid="insertDateValue"/></td>
	</tr>

	<tr>
		<th>Integer Value</th>
		<td><span jwcid="insertIntValue"/></td>
	</tr>

	<tr>
		<th>Double Value</th>
		<td><span jwcid="insertDoubleValue"/></td>
	</tr>

	<tr>
		<th>Big Decimal Value</th>
		<td><span jwcid="insertBigDecimalValue"/></td>
	</tr>

	<tr>
		<th>Long Value</th>
		<td><span jwcid="insertLongValue"/></td>
	</tr>

	<tr>
		<th>String Value</th>
		<td><span jwcid="insertStringValue"/></td>
	</tr>

	<tr>
		<th>Email Value</th>
		<td><span jwcid="insertEmailValue"/></td>
	</tr>

</table>

<p>

<a jwcid="back"><img jwcid="backRollover" alt="[Back]"/></a>

</span>

--- NEW FILE: PaletteResults.html ---
<span jwcid="@Border">

<p>Here are your selections.  If the Palette was set for manual sorting, then the order
is significant.

<ul>
<li jwcid="loop"><span jwcid="insertColor"/></li>
</ul>

<span jwcid="ifNone">
<p>You made no selections.
</span>

<p>
<a jwcid="back"><img jwcid="backRollover" alt="[Back]"/></a>

</span>

--- NEW FILE: Localization.html ---
<!-- $Id: Localization.html,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->

<span jwcid="$content$">
<span jwcid="@Border">

<p>
This page allows the locale to be changed.  Localization is used to select
the HTML template used by the page (and any components on the page).  Likewise,
assets, such as the change button, may also be localized and automatically
selected.

<p>
Translation by 
<a href="http://world.altavista.com">Babelfish</a> (and it's probably quite funny if you speak the
language).

<p>
Select a new locale:

<form jwcid="form">
	<input jwcid="inputLocale"/>
	<input jwcid="changeButton"/>
</form>
</span>
</span>

--- NEW FILE: popuplink-help.html ---
<html>
<!-- $Id: popuplink-help.html,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->
<head>
<title>PopupLink Help</title>
</head>

<body>
<font face="helvetica">
<b>Help Page</b>
<hr/>
This static Help page is accessed via the 
<tt><font color="blue">contrib:PopupLink</font></tt> component.
<p/>
HTML file
<blockquote>
<pre>
&lt;a jwcid="helpLink"&gt;PopupLink Help&lt;/a&gt;
</pre>
</blockquote>
<p/>
Page file
<blockquote>
<pre>
&lt;component id="helpLink" type="contrib:PopupLink"&gt;
   &lt;binding name="url" expression='"popuplink-help.html"'/&gt;
   &lt;binding name="height" expression="400"/&gt;
   &lt;binding name="width" expression="850"/&gt;
   &lt;binding name="features" expression='"top=200,left=100,resizable=yes,scrollbars=yes"'/&gt;
&lt;/component&gt;
</pre>
</blockquote>
<font>
<table width="100%">
<tr>
<td align="right">
<input type="button" value=" Close " onclick="javascript:window.close();"/>
&nbsp;&nbsp;&nbsp;
</td>
</tr>
<table>
</body>
</html>

--- NEW FILE: LocalizationChange.html ---
<span jwcid="@Border">

Congratulations, you've changed the locale to <span jwcid="insertLocaleName"/>.

<p><a jwcid="back"><img jwcid="chooseAgainImage"/></a>

</span>
--- NEW FILE: Redirect.html ---
<span jwcid="@Border">

<p>This page demonstrates that Tapestry can interoperate with
traditional web applications.  A listener method may redirect
to either an internal resource within the same
web application, or to an external URL.

<p>
Examples:

<ul>
<li><a href="#" jwcid="internal">Forward to internal resource</a>  (redirect-target.html)
<li><a href="#" jwcid="external">Redirect to external URL</a>  (http://sf.net/projects/tapestry)
</ul>

<p>

The code for both these cases is very simple:
<pre>
    public void redirectInternal(IRequestCycle cycle)
    throws RequestCycleException
    {
        throw new RedirectException("redirect-target.html");
    }
    
    public void redirectExternal(IRequestCycle cycle)
    throws RequestCycleException
    {
        throw new RedirectException("http://sf.net/projects/tapestry");
    }
</pre>
</span>

--- NEW FILE: Home.html ---
<span jwcid="@Border">

<p>This is the Tapestry Workbench.  It is a testing ground for Tapestry.
Each tab above links to a new page, or set of pages, that demonstrate Tapestry components and
features.

<p>The check box control below is used to enable or disable the display of request information.  This is
a detailed description of incoming request and session data, the same as provided by
the Tapestry Inspector.  This is very useful when trying to understand or debug a form component.

<p>The Tapestry icon in the lower right corner raises the Tapestry Inspector in a new window.
The Inspector is a mini-application used
to explore a running Tapestry application.

</span>

--- NEW FILE: Table.html ---
<!-- $Id: Table.html,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->

<span jwcid="$content$">

<span jwcid="@Border">

	<span jwcid="localeList"/>

	<span jwcid="localeSelection@LocaleSelection"/>

</span>

</span>

--- NEW FILE: UploadResults.html ---
<span jwcid="@Border">

<table border=0>
	<tr><th>Upload Path:</th>
		<td><span jwcid="insertFilePath">File path</span></td>
	</tr>
	<tr><th>Upload File:</th>
		<td><span jwcid="insertFileName">File name</span></td>
	</tr>
	<tr><th>Content Type:</th>
		<td><span jwcid="insertContentType">text/plain</span></td>
	</tr>	
</table>

<p>
<pre><span jwcid="insertFileDump"/></pre>

<p>
<a jwcid="back"><img jwcid="backRollover" alt="[Back]"/></a>

</span>

--- NEW FILE: Chart.html ---
<!-- $Id: Chart.html,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->

<span jwcid="@Border">

<p>This page demonstrates using a form to drive the dynamic generation of a
chart (courtesy of <a href="http://www.object-refinery.com/jfreechart/">JFreeChart</a>).
Enter names and values in the form and see them in the pie chart at the bottom.


<span jwcid="showError"/>

<form jwcid="form">

<table class="form">
	<tr class="column-header">
		<th>Category</th>
		<th>Value</th>
	</tr>
	
	<tr jwcid="plotValues">
		<td><input jwcid="inputName" size="40" maxlength="40"/></td>
		<td><input jwcid="inputValue" size="20" maxlength="20"/></td>
		<td><input jwcid="inputMarked"/></td>
	</tr>

	<tr>
		<td colspan="2">
			<input jwcid="add"/>
			<input type="submit" value="Update">
		</td>
		<td>
		<input jwcid="delete"/>
		</td>
	</tr>

</table>

</form>

<img jwcid="chart"/>

</span>
--- NEW FILE: Fields.html ---
<!-- $Id: Fields.html,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->

<span jwcid="@Border">

Tapestry includes a number of form-related components.  Tapestry components are
responsible for reading properties when a page is rendered, to supply default values,
and writing properties when the form is submitted; it is never necesssary to write
code to directly read HTTP parameters.

<p>
In addition, Tapestry includes the ValidField component which
is part of a framework that allows for complex validation of user input
as well as presentation of errors.

<p>
<form jwcid="enabledForm">
<input jwcid="inputEnabled"/> Enable Client Side Validation
</form>

<p>ValidField components can perform validations on the client-side, triggered
by the user submitting the form.  The checkbox above enables or disables
this feature.  Input is always rechecked on the server-side (in case the client
doesn't support JavaScript).

<span jwcid="showError"/>

<form jwcid="form">

<table class="form">
	<tr>
		<th><span jwcid="dateLabel"/></th>
		<td><input jwcid="inputDate"/></td>
	</tr>
  <tr>
  	<th><span jwcid="intLabel"/></th>
  	<td><input jwcid="inputInt"/></td>
  </tr>
  <tr>
  	<th><span jwcid="doubleLabel"/></th>
  	<td><input jwcid="inputDouble"/></td>
  </tr>
  <tr>
  	<th><span jwcid="bigDecimalLabel"/></th>
  	<td><input jwcid="inputBigDecimal"/></td>
  </tr>
  <tr>
 	<th><span jwcid="longLabel"/></th>
 	<td><input jwcid="inputLong"/></td>
  </tr>

  <tr>
  	<th><span jwcid="stringLabel"/></th>
  	<td><input jwcid="inputString"/></td>
  </tr>

  <tr>
  	<th><span jwcid="emailLabel"/></th>
  	<td><input jwcid="emailString"/></td>
  </tr>

  <tr>
  	<td></td>
  	<td><input jwcid="continue"/></td>
</table>

</form>
</span>
--- NEW FILE: Palette.html ---
<span jwcid="@Border">

<p>The Palette component is used to collect multiple selections, items are selected
in the left column (available) and moved to the right column (selected).  The component
can be configured to keep the items sorted by their visible label, their
hidden value, or manually sorted.  Items are moved between columns using the buttons,
or by double clicking.

<form jwcid="form">

<table class="form">
	<tr>
		<th>Sort Mode:</th>
		<td><input jwcid="inputColorSort"/></td>
	</tr>
	<tr>
		<th>Colors:</th>
		<td><input jwcid="inputColor"/></td>
	</tr>
	<tr>
		<td></td>
		<td><input jwcid="update"/>
			<input jwcid="continue"/></td>
	</tr>
</table>

</form>

<p>
Obviously, there's a whole lot of JavaScript running on the client side.  However, there
are no arbitrary limits; you can have as many Palettes in a form as you want, or have multiple
forms and multiple Palettes.  Tapestry uses a sophisticated method of generating custom JavaScript
from a template.

<p>You can also customize the images used for the buttons and the titles above the
two selection columns.

</span>
--- NEW FILE: LocalizationChange_it.html ---
<span jwcid="@Border">

Congratulazioni, avete cambiato il locale a <span jwcid="insertLocaleName"/>.

<p><a jwcid="back"><img jwcid="chooseAgainImage"/></a>

</span>
--- NEW FILE: Upload.html ---
<!-- $Id: Upload.html,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->

<span jwcid="$content$">

<span jwcid="@Border">

<p>The Upload component is used as a form element and allows files to be uploaded to Tapestry.  It can
be freely mixed<a href="#note"><sup>*</sup></a> with other components in a form.

<p>The following form allows you to upload a file and see a hexadecimal dump of it.

<span jwcid="showError"/>

<form jwcid="form" enctype="multipart/form-data">

<table class="form">
	<tr>
		<th>File:</th>
		<td><input jwcid="inputFile" size=30/></td>
	</tr>
	<tr>
		<th>Options:</th>
		<td>
			<table class="form">
				<tr>
					<th><input jwcid="inputAscii"/></th>
					<td>Display ASCII</td>
				</tr>
				<tr>
					<th><select jwcid="inputWidth"/></th>
					<td>bytes per line</td>
				</tr>
			</table>
	</tr>
	
	<tr>
		<td></td>
		<td><input jwcid="continue"/></td>
	</tr>
	
</table>
</form>


<p>
<a name="note"><sup>*</sup>
At this time, the developer must manually set the containing form's 
<code>enctype</code> attribute 
to <code>multipart/form-data</code>.

</span>

</span>
--- NEW FILE: Localization_it.html ---
<span jwcid="@Border">

Questa pagina permette che il locale sia cambiato. 
La localizzazione &egrave; usata per selezionare la mascherina del HTML usata dalla pagina 
(e da qualsiasi componenti alla pagina). 

Inoltre, i beni, quale il tasto del cambiamento, possono anche essere localizzati 
ed essere selezionati automaticamente. 

<p>Traduzione da 
<a href="http://world.altavista.com">Babelfish</a>
(e da esso &egrave; probabilmente abbastanza divertente se parlate la lingua). 

<p>Selezioni un nuovo locale: 

<form jwcid="form">
	<input jwcid="inputLocale"/>
	<input jwcid="changeButton"/>
</form>

</span>

--- NEW FILE: .cvsignore ---
*.jbf

--- NEW FILE: LocalizationChange_fr.html ---
<span jwcid="@Border">

Des f&#233;licitations, vous avez chang&#233; le locale en <span jwcid="insertLocaleName"/>.

<p><a jwcid="back"><img jwcid="chooseAgainImage"/></a>

</span>
--- NEW FILE: Dates.html ---
<!-- $Id: Dates.html,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->

<span jwcid="@Border">

This page is used to demonstrate the DatePicker component.

<form jwcid="@Form">

<table valign="middle">
 <tr>
  <td>Start Date:</td> <td><span jwcid="startDatePicker"/></td> <td>&nbsp;<a href="" jwcid="helpLink">PopupLink Help</a></td>
 </tr>
 <tr>
  <td>End Date:</td> <td><span jwcid="endDatePicker"/></td>
 </tr>
 <tr>
  <td colspan="2">&nbsp;</td>
 </tr>
 <tr>
  <td colspan="2" align="right"><input type="submit" value="Submit"/></td>
 </tr>
</table>

</form>

<u>Submitted Dates</u><br>
Start date: <span jwcid="insertStartDate"/><br>
End date: <span jwcid="insertEndDate"/>

</span>
--- NEW FILE: LocalizationChange_de.html ---
<span jwcid="@Border">


Gl&#252;ckw&#252;nsche, haben Sie ge&#228;ndert das locale zu <span jwcid="insertLocaleName"/>.

<p><a jwcid="back"><img jwcid="chooseAgainImage"/></a>

</span>
--- NEW FILE: ExceptionTab.html ---
<span jwcid="@Border">

<p>Tapestry has sophisticated exception reporting for when things go wrong in development.
Exception reporting is very smart, using reflection to work backwards through
the chain of exceptions, displaying JavaBeans properties of each exception and
a stack trace of the <em>deepest</em> exception.

<p>In addition, a wealth of detail about the servlet, application, request, servlet context and JVM is displayed.
The goal is to save developers debugging time by producing a complete report
when exceptions do occur.

<p>
The look and feel of the exception reporting page can be customized by applications.

<p>
Click <a jwcid="@PageLink" href="#" page="ErrorFest">this link</a> for 
a demonstration.  The specification of the target page
has deliberate errors.


</span>

--- NEW FILE: Localization_fr.html ---
<span jwcid="@Border">

Cette page permet au locale d'&eacute;tre chang&eacute;.
La localisation est employ&eacute;e pour choisir le calibre de HTML employ&eacute; par la page 
(et tous composants &agrave; la page). De m&ecirc;me, des capitaux, tels que le bouton de changement, 
peuvent &eacute;galement &ecirc;tre localis&eacute;s et automatiquement choisis. 

<p>Traduction par 
<a href="http://world.altavista.com">Babelfish</a> 
(et elle est probablement tout &agrave; fait dr&ocirc;le si vous parlez la langue).

<p>Choisissez un nouveau locale: 

<form jwcid="form">
	<input jwcid="inputLocale"/>
	<input jwcid="changeButton"/>
</form>

</span>
--- NEW FILE: Localization_de.html ---
<span jwcid="@Border">

Diese Seite erlaubt, da&szlig; das locale ge&auml;ndert wird. 
Lokalisation wird verwendet, um die HTML Schablone vorzuw&auml;hlen, die 
durch die Seite benutzt wird (und irgendwelche Bestandteile auf der Seite). Ebenso k&ouml;nnen Werte, wie 
die &Auml;nderung Taste, auch beschr&auml;nkt werden und automatisch vorgew&auml;hlt werden. 

<p>&Uuml;bersetzung durch 
<a href="http://world.altavista.com">Babelfish</a>
(und sie ist vermutlich ziemlich lustig, wenn Sie die Sprache sprechen). 

<p>W&#228;hlen Sie ein neues locale aus:

<form jwcid="form">
	<input jwcid="inputLocale"/>
	<input jwcid="changeButton"/>
</form>

</span>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.