You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by jk...@apache.org on 2006/01/24 04:05:17 UTC

svn commit: r371786 [2/4] - in /jakarta/tapestry/trunk: ./ eclipse/ examples/AjaxWorkbench/ examples/AjaxWorkbench/src/ examples/AjaxWorkbench/src/config/ examples/AjaxWorkbench/src/context/ examples/AjaxWorkbench/src/context/WEB-INF/ examples/AjaxWork...

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,48 @@
+<span jwcid="$content$">
+
+<form jwcid="form">
+
+    <span jwcid="checkboxGroup">
+
+	<!-- This component could be implemented using the FormTable component
+		 in the following way:
+		 
+	     <table jwcid="@contrib:FormTable" width="100%"
+    		source="ognl:@java.util.Locale@getAvailableLocales()"
+    		columns="!checkbox, Locale:toString(), Language:displayLanguage, Country:displayCountry, 
+            	Variant:displayVariant, ISO Language:ISO3Language, ISO Country:ISO3Country"
+	    	row="ognl:currentLocale"
+     		rowsClass="ognl:beans.rowClass.next"/>
+    	 <span jwcid="checkboxColumnHeader@Block"></span>
+	     <span jwcid="checkboxColumnValue@Block"><span jwcid="checkbox"/></span>
+		 
+		 Instead, in this example we use a custom layout for the table (usually done 
+	     for greater flexibility), rather than the standard one provided 
+	     by the FormTable component. We use the lower level Table components instead 
+	     and lay them out in our own way. -->
+
+	<table jwcid="tableView" width="100%">
+		<tr>
+            <td colspan="7">
+        		<span jwcid="tablePages@contrib:TableFormPages"/>
+            </td>
+        </tr>
+		
+		<tr>
+			<td><span jwcid="controlCheckbox"/></td>
+			<td jwcid="tableColumns"/>
+		</tr>
+		
+		<tr jwcid="tableFormRows">
+			<td><span jwcid="checkbox"/></td>
+			<td jwcid="tableValues" align="center"/>
+		</tr>
+	</table>
+    
+    </span>
+    
+	<span jwcid="submitButton" value="Select locales"/>
+
+</form>
+
+</span>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.jwc
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.jwc?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.jwc (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.jwc Mon Jan 23 19:04:45 2006
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE component-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+	
+<component-specification class="org.apache.tapestry.ajaxworkbench.table.LocaleList" 
+	allow-body="no" allow-informal-parameters="yes">
+
+    <bean name="rowClass" class="org.apache.tapestry.bean.EvenOdd"/>
+
+    
+	<!--property name="currentLocale"/-->
+	
+	<property name="selectedLocales" persist="session" initial-value="new java.util.HashSet()"/>
+
+	<component id="form" type="Form">
+		<!--binding name="listener" value="listeners.formSubmit"/-->
+	</component>
+
+    <component id="checkboxGroup" type="contrib:CheckboxGroup"/>
+    
+    <component id="controlCheckbox" type="contrib:ControlCheckbox"/>
+    
+	<component id="checkbox" type="contrib:ControlledCheckbox">
+		<binding name="value" value="checkboxSelected"/>
+	</component>
+
+	<component id="submitButton" type="Submit">
+		<binding name="listener" value="listener:selectLocales"/>
+	</component>
+
+	<component id="tableView" type="contrib:TableView">
+        <binding name="source" value="@java.util.Locale@getAvailableLocales()"/>
+        <binding name="columns">literal: 
+            * locale:toString(), language:displayLanguage, country:displayCountry, 
+            variant:displayVariant, isoLanguage:ISO3Language, isoCountry:ISO3Country
+        </binding>
+	</component>
+
+	<component id="tableColumns" type="contrib:TableColumns"/>
+
+	<component id="tableFormRows" type="contrib:TableRows">
+		<binding name="row" value="currentLocale"/>
+		<binding name="keyExpression" value="literal:toString()"/>
+		<binding name="class" value="beans.rowClass.next"/>
+	</component>
+
+	<component id="tableValues" type="contrib:TableValues"/>
+
+</component-specification>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.properties
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.properties?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.properties (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleList.properties Mon Jan 23 19:04:45 2006
@@ -0,0 +1,20 @@
+# Copyright 2004, 2005 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.
+
+locale=Locale
+language=Language
+country=Country
+variant=Variant
+isoLanguage=ISO Language
+isoCountry=ISO Country

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,35 @@
+<span jwcid="$content$">
+
+<style type="text/css">
+	.tableRowsClass { text-align: center }
+</style>
+
+
+<span jwcid="condTable">
+	<hr>
+
+	<!-- This is the simplest way to insert a table - a single line in the template.
+    	 Unlike the LocaleList component, the rendering of the table itself is left 
+    	 to the Table component -->
+	<table jwcid="table" width="100%"/>
+
+</span>
+
+
+<!-- This is a block defining how the verbosity column should look like -->
+<span jwcid="verbosityColumnValue@Block">
+	<table style="border: 1px black solid; width: 100px; height: 15px;">
+		<tr style="border: 1px black solid; width: 100px; height: 15px;">
+			<td jwcid="verbosity"></td>
+			<td></td>
+		</tr>
+	</table>
+</span>
+
+
+<!-- This is a block defining how the remove column should look like -->
+<span jwcid="deleteColumnValue@Block">
+	<a jwcid="directDelete">remove</a>
+</span>
+
+</span>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.jwc
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.jwc?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.jwc (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.jwc Mon Jan 23 19:04:45 2006
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE component-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+
+<component-specification class="org.apache.tapestry.ajaxworkbench.table.LocaleSelection"
+	allow-body="no" allow-informal-parameters="yes">
+	
+  <component id="condTable" type="If">
+		<binding name="condition" value="localeSet.size gt 0"/>
+	</component>
+	
+    <!-- Define the Table component that will be used. 
+         This example demonstrates various techniques for configuring the component. -->
+    <component id="table" type="contrib:Table">
+        
+        <!-- The source of the data for the table will be the localeSet property
+             defined further down in this file -->
+        <binding name="source" value="localeSet"/>
+        
+        <!-- The columns of the table -->
+        <binding name="columns"> 
+            literal:
+            
+            <!-- The first column is the representation of the locale returned when invoking toString() on it.
+                 Its name will be displayed according to the translation value
+                 of this component with key 'locale' (see LocaleSelection.properties) -->
+            locale:toString(),
+            
+            <!-- The next two columns are returned by the Java code as ITableColumn objects -->
+            =currencyColumn, 
+            =dateFormatColumn,
+            
+            <!-- The next column is named 'verbosity' and thus will use the 
+                 verbosityValueRenderer block in this component to render the row values. 
+                 If no translation key 'verbosity' is found, the column will be displayed as 'Verbosity' -->
+            verbosity:Verbosity:@org.apache.tapestry.ajaxworkbench.table.VerbosityRating@calculateVerbosity(#this),
+            
+            <!-- The last column is named 'delete' and is not sortable. Please see the 
+                 deleteValueRenderer block for the definition of how it should look --> 
+            !delete
+        </binding>
+
+        <!-- The row object (locale) that is currently being rendered 
+             will be stored in the currentLocale property (defined further down) -->
+        <binding name="row" value="currentLocale"/>
+        
+        <!-- Each rendered row will be given the CSS class of 'tableRowsClass' -->
+		<binding name="rowsClass" value="literal:tableRowsClass"/>
+        
+	</component>
+	
+    <component id="directDelete" type="DirectLink">
+		<binding name="listener" value="listener:deleteLocale"/>
+		<binding name="parameters" value="deleteLocaleContext"/>
+	</component>
+	
+    <component id="verbosity" type="Any">
+		<binding name="element" value="literal:td"/>
+		<binding name="style">ognl:  
+            "background-color:blue; width:"
+			+ (currentLocaleVerbosity / 2) + "px"
+		</binding>
+	</component>
+    
+    <property name="localeSet" persist="session"  initial-value="new java.util.HashSet()"/>
+
+    <property name="currentLocale"/>
+    
+</component-specification>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.properties
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.properties?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.properties (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/LocaleSelection.properties Mon Jan 23 19:04:45 2006
@@ -0,0 +1,17 @@
+# Copyright 2004, 2005 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.
+
+locale=Locale
+verbosity=Verbosity
+delete=

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Palette.page
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Palette.page?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Palette.page (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Palette.page Mon Jan 23 19:04:45 2006
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE page-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+	
+<page-specification class="org.apache.tapestry.ajaxworkbench.palette.Palette">
+  
+  <property name="clientValidationEnabled" persist="client" initial-value="true"/>
+ 
+  <bean name="delegate" class="org.apache.tapestry.ajaxworkbench.WorkbenchValidationDelegate" 
+        property="delegate"/>
+  
+  <component id="form" type="Form">
+    <binding name="delegate" value="bean:delegate"/>
+    <binding name="clientValidationEnabled" value="clientValidationEnabled"/>
+    <binding name="refresh" value="listener:doRefresh"/>
+    <binding name="success" value="listener:doAdvance"/>    
+  </component>
+  
+  <component id="inputEnabled" type="Checkbox">
+    <binding name="value" value="clientValidationEnabled"/> 
+    <binding name="onchange" value="literal:javascript:this.form.events.submit();"/>
+  </component>
+
+  <component id="inputColorSort" type="PropertySelection">
+  	<binding name="value" value="sort"/>
+  	<binding name="model" value="literal:None=NONE,Label=LABEL,Value=VALUE,Manual=USER"/>
+    <binding name="onchange">
+      literal:javascript:this.form.events.refresh();
+    </binding>
+  </component>
+  
+  <component id="inputColor" type="contrib:Palette">
+    <binding name="model" value="colorModel"/>
+    <binding name="selected" value="selectedColors"/>
+    <binding name="sort" value="sort"/>
+    <binding name="tableClass" value="literal:palette"/>
+    <binding name="displayName" value="literal:Colors"/>
+    <binding name="validators" value="validators:required"/>
+  </component>
+  
+  <component id="update" type="ImageSubmit">
+    <binding name="image" value="asset:update"/>
+  </component>
+  
+  <component id="continue" type="ImageSubmit">
+  	<binding name="image" value="asset:continue"/>
+  </component>
+ 
+  <asset name="continue" path="images/Continue.gif"/>
+  <asset name="update" path="images/Update.gif"/>
+  
+</page-specification>
+

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/PaletteResults.page
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/PaletteResults.page?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/PaletteResults.page (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/PaletteResults.page Mon Jan 23 19:04:45 2006
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2005 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.
+-->
+
+<!DOCTYPE page-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+	
+<page-specification class="org.apache.tapestry.ajaxworkbench.palette.PaletteResults">
+  
+  <component id="loop" type="Foreach">
+  	<binding name="element" value="literal:li"/>
+  	<binding name="source" value="selectedColors"/>
+  </component>
+     
+  <component id="backRollover" type="Rollover">
+    <binding name="image" value="asset:back"/>
+    <binding name="mouseOver" value="asset:backFocus"/>
+  </component>
+  
+  <asset name="back" path="images/Back.gif"/>
+  <asset name="backFocus" path="images/Back-focus.gif"/>
+  
+</page-specification>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Redirect.page
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Redirect.page?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Redirect.page (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Redirect.page Mon Jan 23 19:04:45 2006
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE page-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+	
+<page-specification class="org.apache.tapestry.ajaxworkbench.Redirect"/>
+  

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Table.page
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Table.page?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Table.page (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Table.page Mon Jan 23 19:04:45 2006
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE page-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+	
+<page-specification>
+  
+  <component id="localeList" type="LocaleList">
+  	<binding name="localeSelectionListener" value="component:localeSelection"/>
+  </component>
+  
+  <component id="localeSelection" type="LocaleSelection"/>
+  
+</page-specification>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Upload.page
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Upload.page?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Upload.page (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/Upload.page Mon Jan 23 19:04:45 2006
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE page-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+  
+<page-specification class="org.apache.tapestry.ajaxworkbench.upload.Upload">
+
+  <bean name="delegate" class="org.apache.tapestry.ajaxworkbench.WorkbenchValidationDelegate" 
+        property="delegate"/>
+  
+  <property name="clientValidationEnabled" persist="client" initial-value="true"/>
+  <property name="showAscii" persist="session"/>
+  <property name="bytesPerLine" persist="session"/>
+  
+  <component id="inputEnabled" type="Checkbox">
+    <binding name="value" value="clientValidationEnabled"/> 
+    <binding name="onchange" value="literal:javascript:this.form.events.submit();"/>
+  </component>
+  
+  <component id="inputWidth" type="PropertySelection">
+  	<binding name="value" value="bytesPerLine"/>
+  	<binding name="model" value="bytesPerLineModel"/>
+  </component>
+   
+  <asset name="continue" path="images/Continue.gif"/>
+
+</page-specification>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/UploadResults.page
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/UploadResults.page?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/UploadResults.page (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/UploadResults.page Mon Jan 23 19:04:45 2006
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2005 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.
+-->
+
+<!DOCTYPE page-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+	
+<page-specification class="org.apache.tapestry.ajaxworkbench.upload.UploadResults">
+  
+  <component id="backRollover" type="Rollover">
+    <binding name="image" value="asset:back"/>
+    <binding name="mouseOver" value="asset:backFocus"/>
+  </component>
+  
+  <asset name="back" path="images/Back.gif"/>
+  <asset name="backFocus" path="images/Back-focus.gif"/>
+  
+</page-specification>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/ajaxworkbench.application
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/ajaxworkbench.application?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/ajaxworkbench.application (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/ajaxworkbench.application Mon Jan 23 19:04:45 2006
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE application PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+	
+<application name="Tapestry Ajax Component Workbench">
+  <meta key="org.apache.tapestry.visit-class" value="org.apache.tapestry.ajaxworkbench.Visit"/>
+  <meta key="org.apache.tapestry.template-encoding" value="ISO-8859-1"/>
+  <meta key="org.apache.tapestry.page-class-packages" value="org.apache.tapestry.ajaxworkbench"/>
+  <meta key="org.apache.tapestry.component-class-packages" value="org.apache.tapestry.ajaxworkbench.components"/>
+  
+  <extension name="org.apache.tapestry.request-decoder" class="org.apache.tapestry.ajaxworkbench.RequestDecoder"/>
+  
+  <library id="contrib" specification-path="classpath:/org/apache/tapestry/contrib/Contrib.library"/>
+</application>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/hivemodule.xml
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/hivemodule.xml?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/hivemodule.xml (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/hivemodule.xml Mon Jan 23 19:04:45 2006
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<module id="ajaxworkbench" version="1.0.0" package="org.apache.tapestry.ajaxworkbench">
+  
+  <contribution configuration-id="tapestry.services.ApplicationServices">
+    <service name="home" object="service:Home"/>
+    <service name="chart" object="service:Chart"/>
+  </contribution>
+  
+  <contribution configuration-id="tapestry.url.ServiceEncoders">
+    <direct-service-encoder id="direct" stateless-extension="direct" stateful-extension="sdirect"/>
+    <page-service-encoder id="page" extension="page" service="page"/>
+    <page-service-encoder id="external" extension="external" service="external"/>    
+    <asset-encoder id="asset" path="/assets"/>
+    <extension-encoder id="ext" extension="svc" after="*"/>
+  </contribution>
+  
+  <service-point id="Chart" interface="org.apache.tapestry.engine.IEngineService">
+    <invoke-factory>
+      <construct class="chart.ChartService">
+        <set-object property="exceptionReporter" value="infrastructure:requestExceptionReporter"/>
+        <set-object property="response" value="infrastructure:response"/>
+        <set-object property="linkFactory" value="infrastructure:linkFactory"/>
+      </construct>
+    </invoke-factory>
+  </service-point>
+  
+  <service-point id="Home" interface="org.apache.tapestry.engine.IEngineService">
+    <invoke-factory>
+      <construct class="WorkbenchHomeService">
+        <set-object property="responseRenderer" value="infrastructure:responseRenderer"/>
+        <set-object property="linkFactory" value="infrastructure:linkFactory"/>
+        <set-object property="pageName" value="app-property:org.apache.tapestry.home-page"/>        
+      </construct>
+    </invoke-factory>
+  </service-point>  
+  
+</module>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/localization/Change.page
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/localization/Change.page?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/localization/Change.page (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/localization/Change.page Mon Jan 23 19:04:45 2006
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE page-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+	
+<page-specification class="org.apache.tapestry.ajaxworkbench.localization.LocalizationChange">
+
+  <component id="insertLocaleName" type="Insert">
+    <binding name="value" value="localeName"/>
+  </component>
+  
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+  <component id="back" type="PageLink">
+    <binding name="page" value="literal:localization/Localization"/>
+  </component>
+  
+  <component id="chooseAgainImage" type="Rollover">
+    <binding name="image" value="asset:back"/>
+    <binding name="mouseOver" value="asset:backFocus"/>
+  </component>
+  
+  <asset name="back" path="images/Back.gif"/>
+  <asset name="backFocus" path="images/Back-focus.gif"/>
+  
+</page-specification>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/localization/Localization.page
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/localization/Localization.page?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/localization/Localization.page (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/localization/Localization.page Mon Jan 23 19:04:45 2006
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE page-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
+	
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<page-specification class="org.apache.tapestry.ajaxworkbench.localization.Localization">
+
+  <component id="form" type="Form">
+    <binding name="listener" value="listener:formSubmit"/>
+    <binding name="stateful" value="false"/>
+  </component>
+  
+  <component id="inputLocale" type="PropertySelection">
+    <binding name="value" value="page.engine.locale"/>
+    <binding name="model" value="localeModel"/>
+  </component>
+  
+  <component id="changeButton" type="ImageSubmit">
+    <binding name="image" value="asset:changeButton"/>
+  </component>
+  
+  <asset name="changeButton" path="images/Change.gif"/>
+  
+</page-specification>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/web.xml?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/web.xml (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/WEB-INF/web.xml Mon Jan 23 19:04:45 2006
@@ -0,0 +1,82 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 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.
+-->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+  <display-name>Tapestry Ajax ajaxworkbench Example</display-name>
+  
+	<filter>
+		<filter-name>redirect</filter-name>
+		<filter-class>org.apache.tapestry.RedirectFilter</filter-class>
+	</filter>
+	
+	<filter-mapping>
+		<filter-name>redirect</filter-name>
+		<url-pattern>/</url-pattern>
+	</filter-mapping>
+  
+  <servlet>
+  	<servlet-name>ajaxworkbench</servlet-name>
+    <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
+    <init-param>
+      <param-name>TreeRootDir</param-name>
+      <param-value>/</param-value>
+    </init-param>
+  	<load-on-startup>0</load-on-startup>
+  </servlet>
+     
+  <servlet-mapping>
+  	<servlet-name>ajaxworkbench</servlet-name>
+  	<url-pattern>/app</url-pattern>
+  </servlet-mapping>  
+  
+  <servlet-mapping>
+    <servlet-name>ajaxworkbench</servlet-name>
+    <url-pattern>*.page</url-pattern>
+  </servlet-mapping>
+  
+  <servlet-mapping>
+    <servlet-name>ajaxworkbench</servlet-name>
+    <url-pattern>*.external</url-pattern>
+  </servlet-mapping>
+    
+  <servlet-mapping>
+    <servlet-name>ajaxworkbench</servlet-name>
+    <url-pattern>*.direct</url-pattern>
+  </servlet-mapping>
+  
+  <servlet-mapping>
+    <servlet-name>ajaxworkbench</servlet-name>
+    <url-pattern>*.sdirect</url-pattern>
+  </servlet-mapping>  
+  
+  <servlet-mapping>
+    <servlet-name>ajaxworkbench</servlet-name>
+    <url-pattern>*.svc</url-pattern>
+  </servlet-mapping>
+  
+  <servlet-mapping>
+    <servlet-name>ajaxworkbench</servlet-name>
+    <url-pattern>/assets/*</url-pattern>
+  </servlet-mapping>
+
+  <session-config>
+  	<session-timeout>15</session-timeout>
+  </session-config>
+  
+</web-app>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/css/workbench.css
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/css/workbench.css?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/css/workbench.css (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/css/workbench.css Mon Jan 23 19:04:45 2006
@@ -0,0 +1,195 @@
+SPAN.label-error
+{
+  color: Red;
+}
+
+label.error {
+	color: red;
+	font-style: oblique;
+}
+
+.field-error
+{
+  color: White;
+  background-color: Red;
+}
+
+TABLE.inputerror TD.message
+{
+  font-weight: bold;
+  font-size: smaller;
+}
+
+TABLE.content
+{
+	background-color: #ffffcc;
+  	border-color : Black;
+	border-style : solid;
+	border-width : thin;
+	border-top-width : 0px;
+	border-bottom-width : 2px;
+	border-right-width : 2px;
+	border-left-width : 0px;
+	font-size : smaller;
+	clear: all;
+	width: 700px;
+}
+
+
+TABLE.tabs TD
+{
+  padding: 0px;
+}
+
+BODY
+{
+  background-color: #808080;
+  margin: 2px;
+}
+
+body, td, th {
+  font-family: Lucida Grande, Tahoma, Verdana, Arial, sans-serif;
+  font-size: 9pt;
+}
+
+TABLE.requestDebug
+{
+	width: 700;
+  	border-color : Black;
+	border-style : solid;
+	border-width : thin;
+	border-top-width : 0px;
+	border-bottom-width : 2px;
+	border-right-width : 2px;
+	border-left-width : 0px;
+	background-color: #839cd1;
+	padding: 0;
+}
+
+TABLE.requestDebug TR.control
+{
+    font-weight: bold;
+    font-size: 9pt;
+	color : White;
+	background-color : #330066;
+}
+
+TABLE.requestDebug FORM
+{
+  margin: 0;
+}
+
+DIV.described-object-title
+{
+  font-size: large;
+  font-weight: bold;
+  color: white;
+  background-color: black;
+}
+
+TABLE.described-object  
+{
+  border: 1px solid black;
+  width: 100%;
+}
+
+
+TABLE.described-object TR.section TH
+{
+  color: white;
+  background-color: black;
+  text-align: center;
+}
+
+TABLE.described-object TR.odd
+{
+  background-color: silver;
+}
+
+TABLE.described-object TR.even
+{
+  background-color: #839cd1;
+}
+
+TABLE.described-object TH
+{
+  text-align: right;
+  width: 1px; // Will stretch to fit.
+}
+
+TABLE.form TR
+{
+   vertical-align: top;
+}
+
+TABLE.form TH
+{
+   font-weight: bold;
+   text-align: right;
+}
+
+TABLE.form TR.column-header TH
+{
+	font-weight: bold;
+	text-align: center;
+}
+
+TABLE.palette TH
+{
+  font-size: 9pt;
+  font-weight: bold;
+  color: white;
+  background-color: #330066;
+  text-align: center;
+}
+
+TABLE.palette SELECT
+{
+  font-weight: bold;
+  background-color: #839cd1;
+  width: 200px;
+}
+
+TABLE.palette TD.controls
+{
+   text-align: center;
+   vertical-align: middle;
+   width: 60px;
+}
+
+TABLE.form
+{
+  font-size: 9pt;
+}
+
+A.nav
+{
+  font-family: Trebuchet MS,sans-serif;
+  text-decoration:none;
+  font-size: 12px;
+  font-weight: bold;
+  color: black;
+}
+
+A.nav:hover
+{
+  text-decoration:underline;
+}
+
+PRE
+{
+  font-size: 12pt;
+}
+
+UL 
+{
+	margin-top: 0px;
+	margin-bottom: 0px;
+	margin-left: 20px;
+}
+
+IMG
+{
+  border: none;
+}
+

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus_de.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus_de.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus_de.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus_fr.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus_fr.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus_fr.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus_it.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus_it.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back-focus_it.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back_de.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back_de.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back_de.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back_fr.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back_fr.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back_fr.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back_it.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back_it.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Back_it.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change_de.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change_de.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change_de.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change_fr.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change_fr.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change_fr.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change_it.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change_it.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Change_it.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Continue.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Continue.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Continue.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Update.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Update.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Update.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Warning-small.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Warning-small.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Warning-small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Warning.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Warning.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/Warning.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/minus.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/minus.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/minus.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/nodeimage.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/nodeimage.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/nodeimage.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/plus.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/plus.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/plus.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-active-left.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-active-left.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-active-left.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-active-mid.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-active-mid.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-active-mid.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-active-right.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-active-right.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-active-right.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-inactive-left.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-inactive-left.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-inactive-left.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-inactive-mid.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-inactive-mid.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-inactive-mid.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-inactive-right.gif
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-inactive-right.gif?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/images/tab-inactive-right.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,7 @@
+<span jwcid="@Border">
+
+Congratulations, you've changed the locale to <span jwcid="insertLocaleName"/>.
+
+<p><a jwcid="back"><img jwcid="chooseAgainImage"/></a>
+
+</span>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_de.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_de.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_de.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_de.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,8 @@
+<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>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_fr.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_fr.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_fr.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_fr.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,7 @@
+<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>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_it.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_it.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_it.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Change_it.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,7 @@
+<span jwcid="@Border">
+
+Congratulazioni, avete cambiato il locale a <span jwcid="insertLocaleName"/>.
+
+<p><a jwcid="back"><img jwcid="chooseAgainImage"/></a>
+
+</span>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,23 @@
+<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>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_de.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_de.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_de.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_de.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,19 @@
+<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>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_fr.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_fr.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_fr.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_fr.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,19 @@
+<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>
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_it.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_it.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_it.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/localization/Localization_it.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,21 @@
+<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>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/redirect-target.html
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/redirect-target.html?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/redirect-target.html (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/context/redirect-target.html Mon Jan 23 19:04:45 2006
@@ -0,0 +1,39 @@
+<html>
+<head>
+<title>Redirect Target</title>
+<link rel="stylesheet" type="text/css" href="css/workbench.css">
+</head>
+<body>
+
+<!-- This is where the tabs would go.  Alas, used private assets for
+     the tabs. -->
+     
+<table class="tabs" cellspacing=0 border=0>
+<tr height="20">
+<td>&nbsp;</td>
+</tr>
+</table>
+
+<table class="content">
+<tr>
+<td>
+
+This is a static page, forwarded to from a Tapestry listener method.
+
+<p>
+Note that internal resources are <em>forwarded to</em>, not
+<em>redirected to</em>.  Tapestry uses 
+<code>RequestDispatcher.forward(ServletRequest, ServletResponse)</code>
+for internal resources (this is the same way an ordinary servlet would
+forward to a JSP to render a response).
+
+<p>
+You may <a href="app">return to the Workbench</a>.
+
+</td>
+</tr>
+</table>
+
+
+</body>
+</html>

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/ActiveBlank.psp
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/ActiveBlank.psp?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/ActiveBlank.psp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/Back.psp
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/Back.psp?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/Back.psp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/BlankFlat.psp
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/BlankFlat.psp?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/BlankFlat.psp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/Change.psp
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/Change.psp?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/Change.psp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/InactiveBlank.psp
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/InactiveBlank.psp?rev=371786&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/images/InactiveBlank.psp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/ExceptionTab.java
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/ExceptionTab.java?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/ExceptionTab.java (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/ExceptionTab.java Mon Jan 23 19:04:45 2006
@@ -0,0 +1,38 @@
+// Copyright 2005 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.
+
+package org.apache.tapestry.ajaxworkbench;
+
+import org.apache.tapestry.IComponent;
+import org.apache.tapestry.annotations.Bean;
+import org.apache.tapestry.annotations.Component;
+import org.apache.tapestry.contrib.link.PopupLinkRenderer;
+import org.apache.tapestry.html.BasePage;
+import org.apache.tapestry.link.ILinkRenderer;
+
+/**
+ * Page used to raise a popup window containing the ErrorFest page, which has errors.
+ * 
+ * @author Howard M. Lewis Ship
+ * @since 4.0
+ */
+public abstract class ExceptionTab extends BasePage
+{
+    @Bean(PopupLinkRenderer.class)
+    public abstract ILinkRenderer getLinkRenderer();
+
+    @Component(type = "PageLink", bindings =
+    { "page=literal:ErrorFest", "renderer=bean:linkRenderer" })
+    public abstract IComponent getLink();
+}

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/Redirect.java
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/Redirect.java?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/Redirect.java (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/Redirect.java Mon Jan 23 19:04:45 2006
@@ -0,0 +1,37 @@
+// Copyright 2004, 2005 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.
+
+package org.apache.tapestry.ajaxworkbench;
+
+import org.apache.tapestry.RedirectException;
+import org.apache.tapestry.html.BasePage;
+
+/**
+ * PageLink to demonstrate redirect from a listener method.
+ * 
+ * @author Howard Lewis Ship
+ */
+
+public abstract class Redirect extends BasePage
+{
+    public void redirectInternal()
+    {
+        throw new RedirectException("redirect-target.html");
+    }
+
+    public void redirectExternal()
+    {
+        throw new RedirectException("http://jakarta.apache.org/tapestry");
+    }
+}
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/RequestDecoder.java
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/RequestDecoder.java?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/RequestDecoder.java (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/RequestDecoder.java Mon Jan 23 19:04:45 2006
@@ -0,0 +1,57 @@
+// Copyright 2004, 2005 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.
+
+package org.apache.tapestry.ajaxworkbench;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.tapestry.request.DecodedRequest;
+import org.apache.tapestry.request.IRequestDecoder;
+
+/**
+ * A useless request decoder (does the same as the default), used to test that a user-supplied
+ * extension is actually used.
+ * 
+ * @author Howard Lewis Ship
+ * @since 2.2
+ */
+
+public class RequestDecoder implements IRequestDecoder
+{
+    private static final Log LOG = LogFactory.getLog(RequestDecoder.class);
+
+    public RequestDecoder()
+    {
+        LOG.debug("<init>");
+    }
+
+    public DecodedRequest decodeRequest(HttpServletRequest request)
+    {
+        if (LOG.isDebugEnabled())
+            LOG.debug("Decoding: " + request);
+
+        DecodedRequest result = new DecodedRequest();
+
+        result.setRequestURI(request.getRequestURI());
+        result.setScheme(request.getScheme());
+        result.setServerName(request.getServerName());
+        result.setServerPort(request.getServerPort());
+
+        return result;
+
+    }
+
+}
\ No newline at end of file

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/Visit.java
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/Visit.java?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/Visit.java (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/Visit.java Mon Jan 23 19:04:45 2006
@@ -0,0 +1,188 @@
+// Copyright 2004, 2005, 2006 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.
+
+package org.apache.tapestry.ajaxworkbench;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * @author Howard Lewis Ship
+ * @since 1.0.7
+ */
+
+public class Visit implements Serializable
+{
+
+    private static final long serialVersionUID = -8506455811411321232L;
+
+    /**
+     * The name of the page for which the corresponding tab should be visibly
+     * active.
+     */
+
+    private String _activeTabName = "Home";
+
+    /**
+     * If true, then a detailed report about the request is appended to the
+     * bottom of each page.
+     */
+
+    private boolean _requestDebug;
+
+    private boolean _disableInspector;
+
+    /**
+     * Used by the Fields demo page.
+     */
+
+    private Integer _intValue;
+
+    private Double _doubleValue;
+
+    private BigDecimal _bigDecimalValue;
+
+    private Long _longValue;
+
+    private Date _dateValue;
+
+    private String _stringValue;
+
+    private String _emailValue;
+
+    private String _textValue;
+
+    private String _zipCode;
+
+    public String getActiveTabName()
+    {
+        return _activeTabName;
+    }
+
+    public void setActiveTabName(String value)
+    {
+        _activeTabName = value;
+    }
+
+    public void setRequestDebug(boolean value)
+    {
+        _requestDebug = value;
+    }
+
+    public boolean getRequestDebug()
+    {
+        return _requestDebug;
+    }
+
+    public void setIntValue(Integer value)
+    {
+        _intValue = value;
+    }
+
+    public Integer getIntValue()
+    {
+        return _intValue;
+    }
+
+    public BigDecimal getBigDecimalValue()
+    {
+        return _bigDecimalValue;
+    }
+
+    public void setBigDecimalValue(BigDecimal value)
+    {
+        _bigDecimalValue = value;
+    }
+
+    public Double getDoubleValue()
+    {
+        return _doubleValue;
+    }
+
+    public void setDoubleValue(Double value)
+    {
+        _doubleValue = value;
+    }
+
+    public Long getLongValue()
+    {
+        return _longValue;
+    }
+
+    public void setLongValue(Long value)
+    {
+        _longValue = value;
+    }
+
+    public Date getDateValue()
+    {
+        return _dateValue;
+    }
+
+    public void setDateValue(Date value)
+    {
+        _dateValue = value;
+    }
+
+    public String getStringValue()
+    {
+        return _stringValue;
+    }
+
+    public void setStringValue(String value)
+    {
+        _stringValue = value;
+    }
+
+    public String getEmailValue()
+    {
+        return _emailValue;
+    }
+
+    public void setEmailValue(String value)
+    {
+        _emailValue = value;
+    }
+
+    public boolean getDisableInspector()
+    {
+        return _disableInspector;
+    }
+
+    public void setDisableInspector(boolean disableInspector)
+    {
+        _disableInspector = disableInspector;
+    }
+
+    public String getTextValue()
+    {
+        return _textValue;
+    }
+
+    public void setTextValue(String value)
+    {
+        _textValue = value;
+    }
+
+    public String getZipCode()
+    {
+        return _zipCode;
+    }
+
+    public void setZipCode(String zipCode)
+    {
+        _zipCode = zipCode;
+    }
+}

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/WorkbenchHomeService.java
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/WorkbenchHomeService.java?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/WorkbenchHomeService.java (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/WorkbenchHomeService.java Mon Jan 23 19:04:45 2006
@@ -0,0 +1,43 @@
+// Copyright 2004, 2005, 2006 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.
+
+package org.apache.tapestry.ajaxworkbench;
+
+import java.io.IOException;
+
+import org.apache.tapestry.IRequestCycle;
+import org.apache.tapestry.engine.HomeService;
+
+/**
+ * Special version of the home service used to reset the visit tab when
+ * re-entering the Tapestry application from a static HTML page.
+ * 
+ * @author Howard Lewis Ship
+ * @see Redirect
+ */
+
+public class WorkbenchHomeService extends HomeService
+{
+
+    public void service(IRequestCycle cycle)
+        throws IOException
+    {
+        Visit visit = (Visit)cycle.getEngine().getVisit();
+
+        if (visit != null) visit.setActiveTabName("Home");
+
+        super.service(cycle);
+    }
+
+}

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/WorkbenchValidationDelegate.java
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/WorkbenchValidationDelegate.java?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/WorkbenchValidationDelegate.java (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/WorkbenchValidationDelegate.java Mon Jan 23 19:04:45 2006
@@ -0,0 +1,77 @@
+// Copyright 2004, 2005, 2006 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.
+
+package org.apache.tapestry.ajaxworkbench;
+
+import org.apache.tapestry.IMarkupWriter;
+import org.apache.tapestry.IRequestCycle;
+import org.apache.tapestry.form.IFormComponent;
+import org.apache.tapestry.valid.IValidator;
+import org.apache.tapestry.valid.ValidationDelegate;
+
+/**
+ * @author Howard Lewis Ship
+ * @since 1.0.6
+ */
+
+public class WorkbenchValidationDelegate extends ValidationDelegate
+{
+
+    private static final long serialVersionUID = -4782900422264574280L;
+
+    public void writeAttributes(IMarkupWriter writer, IRequestCycle cycle, IFormComponent component,
+            IValidator validator)
+    {
+        if (isInError()) writer.attribute("class", "field-error");
+    }
+
+    public void writeSuffix(IMarkupWriter writer, IRequestCycle cycle, IFormComponent component, IValidator validator)
+    {
+        if (isInError())
+        {
+            writer.print(" ");
+            writer.beginEmpty("img");
+            writer.attribute("src", "images/Warning-small.gif");
+            writer.attribute("height", 20);
+            writer.attribute("width", 20);
+        }
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    public void writeLabelPrefix(IFormComponent component, IMarkupWriter writer, IRequestCycle cycle)
+    {
+        // just prevents font tags
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    public void writeLabelSuffix(IFormComponent component, IMarkupWriter writer, IRequestCycle cycle)
+    {
+        // just prevents font tags
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    public void writeLabelAttributes(IMarkupWriter writer, IRequestCycle cycle, IFormComponent component)
+    {
+        if (isInError(component))
+        {
+            writer.attribute("class", "error");
+        }
+    }
+}

Added: jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/chart/ChartAsset.java
URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/chart/ChartAsset.java?rev=371786&view=auto
==============================================================================
--- jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/chart/ChartAsset.java (added)
+++ jakarta/tapestry/trunk/examples/AjaxWorkbench/src/java/org/apache/tapestry/ajaxworkbench/chart/ChartAsset.java Mon Jan 23 19:04:45 2006
@@ -0,0 +1,67 @@
+// Copyright 2004, 2005 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.
+
+package org.apache.tapestry.ajaxworkbench.chart;
+
+import java.io.InputStream;
+import java.util.Locale;
+
+import org.apache.tapestry.IComponent;
+import org.apache.tapestry.IEngine;
+import org.apache.tapestry.IRequestCycle;
+import org.apache.tapestry.asset.AbstractAsset;
+import org.apache.tapestry.engine.IEngineService;
+import org.apache.tapestry.engine.ILink;
+
+/**
+ * An asset used with the {@link ChartService}.
+ * 
+ * @author Howard Lewis Ship
+ * @since 1.0.10
+ */
+
+public class ChartAsset extends AbstractAsset
+{
+    private IEngineService _chartService;
+
+    private IComponent _chartProvider;
+
+    public ChartAsset(IRequestCycle cycle, IComponent chartProvider)
+    {
+        super(null, null);
+
+        IEngine engine = cycle.getEngine();
+
+        _chartService = engine.getService(ChartService.SERVICE_NAME);
+        _chartProvider = chartProvider;
+    }
+
+    public String buildURL()
+    {
+        ILink l = _chartService.getLink(false, _chartProvider);
+
+        return l.getURL();
+    }
+
+    public InputStream getResourceAsStream()
+    {
+        return null;
+    }
+
+    public InputStream getResourceAsStream(IRequestCycle cycle, Locale locale)
+    {
+        return null;
+    }
+
+}
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org