You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2012/08/18 00:05:45 UTC

[1/2] git commit: Fix a number of broken tests by converting clientvalidation="false" to clientvalidation="none"

Updated Branches:
  refs/heads/5.4-js-rewrite a7af05be5 -> 872d0a5a0


Fix a number of broken tests by converting clientvalidation="false" to clientvalidation="none"


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/872d0a5a
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/872d0a5a
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/872d0a5a

Branch: refs/heads/5.4-js-rewrite
Commit: 872d0a5a06fb8f97525f763577feff9bb692e4bb
Parents: 0b8eb08
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Fri Aug 17 15:05:27 2012 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Fri Aug 17 15:05:27 2012 -0700

----------------------------------------------------------------------
 .../src/test/webapp/BeanEditFormValidationDemo.tml |    2 +-
 .../src/test/webapp/ClientValidationDemo.tml       |    2 +-
 .../src/test/webapp/FormValidationDemo.tml         |    2 +-
 .../src/test/webapp/InjectValidatorDemo.tml        |    2 +-
 .../src/test/webapp/OnPrepareDemo.tml              |    2 +-
 tapestry-core/src/test/app1/ChecklistDemo.tml      |    2 +-
 .../src/test/app1/EventMethodTranslate.tml         |    2 +-
 .../src/test/app1/MultiZoneUpdateInsideForm.tml    |    4 ++--
 .../src/test/app1/PerFormValidationMessageDemo.tml |    4 ++--
 tapestry-core/src/test/app1/SelectDemo.tml         |    2 +-
 .../SelectModelFromObjectsAndPropertyNameDemo.tml  |    2 +-
 tapestry-core/src/test/app1/SimpleForm.tml         |    2 +-
 tapestry-core/src/test/app1/SingleErrorDemo.tml    |    2 +-
 tapestry-core/src/test/app1/ValidatorMacroDemo.tml |    2 +-
 .../tapestry5/integration/app1/pages/ValidForm.tml |    4 ++--
 15 files changed, 18 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-beanvalidator/src/test/webapp/BeanEditFormValidationDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-beanvalidator/src/test/webapp/BeanEditFormValidationDemo.tml b/tapestry-beanvalidator/src/test/webapp/BeanEditFormValidationDemo.tml
index 95ffd0e..a453588 100644
--- a/tapestry-beanvalidator/src/test/webapp/BeanEditFormValidationDemo.tml
+++ b/tapestry-beanvalidator/src/test/webapp/BeanEditFormValidationDemo.tml
@@ -1,5 +1,5 @@
 <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
     <body>
-        <t:beaneditform object="user" clientValidation="false"/>
+        <t:beaneditform object="user" clientValidation="none"/>
     </body>
 </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-beanvalidator/src/test/webapp/ClientValidationDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-beanvalidator/src/test/webapp/ClientValidationDemo.tml b/tapestry-beanvalidator/src/test/webapp/ClientValidationDemo.tml
index 2b7ccef..09a0545 100644
--- a/tapestry-beanvalidator/src/test/webapp/ClientValidationDemo.tml
+++ b/tapestry-beanvalidator/src/test/webapp/ClientValidationDemo.tml
@@ -1,6 +1,6 @@
 <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" xmlns:p="tapestry:parameter">
     <body>
-        <t:beaneditform object="testEntity" clientValidation="true" add="collectionSizeValue">
+        <t:beaneditform object="testEntity" clientValidation="submit" add="collectionSizeValue">
         	<p:collectionSizeValue>
         		<t:label for="languages"/>
         		<t:palette t:id="languages" model="literal:Java,C,Ruby,Python,Perl" selected="testEntity.collectionSizeValue" encoder="stringValueEncoder"/>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-beanvalidator/src/test/webapp/FormValidationDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-beanvalidator/src/test/webapp/FormValidationDemo.tml b/tapestry-beanvalidator/src/test/webapp/FormValidationDemo.tml
index 46572c6..380283e 100644
--- a/tapestry-beanvalidator/src/test/webapp/FormValidationDemo.tml
+++ b/tapestry-beanvalidator/src/test/webapp/FormValidationDemo.tml
@@ -1,6 +1,6 @@
 <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
     <body>
-        <t:form clientValidation="false">
+        <t:form clientValidation="none">
         	<t:errors/>
         	
         	<br/>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-beanvalidator/src/test/webapp/InjectValidatorDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-beanvalidator/src/test/webapp/InjectValidatorDemo.tml b/tapestry-beanvalidator/src/test/webapp/InjectValidatorDemo.tml
index aedab46..70c08a9 100644
--- a/tapestry-beanvalidator/src/test/webapp/InjectValidatorDemo.tml
+++ b/tapestry-beanvalidator/src/test/webapp/InjectValidatorDemo.tml
@@ -1,6 +1,6 @@
 <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
     <body>
-        <t:form clientValidation="false">
+        <t:form clientValidation="none">
         	<t:errors/>
         	
         	<br/>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-beanvalidator/src/test/webapp/OnPrepareDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-beanvalidator/src/test/webapp/OnPrepareDemo.tml b/tapestry-beanvalidator/src/test/webapp/OnPrepareDemo.tml
index 7c3bfcd..8740d3d 100644
--- a/tapestry-beanvalidator/src/test/webapp/OnPrepareDemo.tml
+++ b/tapestry-beanvalidator/src/test/webapp/OnPrepareDemo.tml
@@ -1,6 +1,6 @@
 <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
     <body>
-        <t:form clientValidation="false" validate="user">
+        <t:form clientValidation="none" validate="user">
         	<t:errors/>
         	
         	<br/>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/app1/ChecklistDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/ChecklistDemo.tml b/tapestry-core/src/test/app1/ChecklistDemo.tml
index 62a8d9c..77dfeac 100644
--- a/tapestry-core/src/test/app1/ChecklistDemo.tml
+++ b/tapestry-core/src/test/app1/ChecklistDemo.tml
@@ -1,5 +1,5 @@
 <t:border xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
-	<t:form clientValidation="false">
+	<t:form clientValidation="none">
 		<p>
 			<t:errors />
 		</p>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/app1/EventMethodTranslate.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/EventMethodTranslate.tml b/tapestry-core/src/test/app1/EventMethodTranslate.tml
index 8049ff2..6ed4e2d 100644
--- a/tapestry-core/src/test/app1/EventMethodTranslate.tml
+++ b/tapestry-core/src/test/app1/EventMethodTranslate.tml
@@ -1,7 +1,7 @@
 <html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
     <h1>Event Handler Method Translate</h1>
 
-    <t:form clientvalidation="false">
+    <t:form clientvalidation="none">
 
         <t:errors/>
 

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/app1/MultiZoneUpdateInsideForm.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/MultiZoneUpdateInsideForm.tml b/tapestry-core/src/test/app1/MultiZoneUpdateInsideForm.tml
index a3c6472..9ae3469 100644
--- a/tapestry-core/src/test/app1/MultiZoneUpdateInsideForm.tml
+++ b/tapestry-core/src/test/app1/MultiZoneUpdateInsideForm.tml
@@ -1,8 +1,8 @@
-<t:border xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" xmlns:p="tapestry:parameter">
+<t:border xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
 
   <h1>Multi Zone Update Inside Form Demo</h1>
 
-  <form t:type="Form" t:id="form" t:clientValidation="false" action="#">
+  <form t:type="Form" t:id="form" t:clientValidation="none" action="#">
     <t:label for="selectValue1"/>
     <select t:type="Select" t:id="selectValue1" t:validate="required" t:zone="select1ValueZone"/>
     <t:zone t:id="select1ValueZone" visible="false">Show</t:zone>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/app1/PerFormValidationMessageDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/PerFormValidationMessageDemo.tml b/tapestry-core/src/test/app1/PerFormValidationMessageDemo.tml
index da15f78..4ad5f8b 100644
--- a/tapestry-core/src/test/app1/PerFormValidationMessageDemo.tml
+++ b/tapestry-core/src/test/app1/PerFormValidationMessageDemo.tml
@@ -3,10 +3,10 @@
 
 
     <h1>Login</h1>
-    <t:beaneditform t:id="login" object="this" submitLabel="Login" clientValidation="false"/>
+    <t:beaneditform t:id="login" object="this" submitLabel="Login" clientValidation="none"/>
 
     <h1>Register</h1>
-    <t:beaneditform t:id="register" object="this" submitLabel="Register" clientValidation="false"/>
+    <t:beaneditform t:id="register" object="this" submitLabel="Register" clientValidation="none"/>
 
 
 </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/app1/SelectDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/SelectDemo.tml b/tapestry-core/src/test/app1/SelectDemo.tml
index 796762c..86ae7e0 100644
--- a/tapestry-core/src/test/app1/SelectDemo.tml
+++ b/tapestry-core/src/test/app1/SelectDemo.tml
@@ -1,5 +1,5 @@
 <t:border xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
-	<t:form clientValidation="false">
+	<t:form clientValidation="none">
 		<p>
 			<t:errors />
 		</p>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/app1/SelectModelFromObjectsAndPropertyNameDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/SelectModelFromObjectsAndPropertyNameDemo.tml b/tapestry-core/src/test/app1/SelectModelFromObjectsAndPropertyNameDemo.tml
index 3a3dac2..cc57607 100644
--- a/tapestry-core/src/test/app1/SelectModelFromObjectsAndPropertyNameDemo.tml
+++ b/tapestry-core/src/test/app1/SelectModelFromObjectsAndPropertyNameDemo.tml
@@ -1,5 +1,5 @@
 <t:border xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
-	<t:form clientValidation="false">
+	<t:form clientValidation="none">
 		<p>
 			<t:errors />
 		</p>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/app1/SimpleForm.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/SimpleForm.tml b/tapestry-core/src/test/app1/SimpleForm.tml
index ddff25a..ae7f1e7 100644
--- a/tapestry-core/src/test/app1/SimpleForm.tml
+++ b/tapestry-core/src/test/app1/SimpleForm.tml
@@ -6,7 +6,7 @@
         start to Tapestry 5 form support.
     </p>
 
-    <t:form clientvalidation="false">
+    <t:form clientvalidation="none">
 
         <t:errors/>
         

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/app1/SingleErrorDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/SingleErrorDemo.tml b/tapestry-core/src/test/app1/SingleErrorDemo.tml
index 5c061b7..34b512e 100644
--- a/tapestry-core/src/test/app1/SingleErrorDemo.tml
+++ b/tapestry-core/src/test/app1/SingleErrorDemo.tml
@@ -1,7 +1,7 @@
 <html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
     <h1>Error Demo</h1>
 
-    <t:form clientvalidation="false">
+    <t:form clientvalidation="none">
         
         <t:error for="username"/>
         <input t:type="TextField" t:id="username" validate="required"/>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/app1/ValidatorMacroDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/ValidatorMacroDemo.tml b/tapestry-core/src/test/app1/ValidatorMacroDemo.tml
index be56223..207d643 100644
--- a/tapestry-core/src/test/app1/ValidatorMacroDemo.tml
+++ b/tapestry-core/src/test/app1/ValidatorMacroDemo.tml
@@ -1,6 +1,6 @@
 <html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
 	<h1>Validator Macro Demo</h1>
-	<t:form clientValidation="false">
+	<t:form clientValidation="none">
 		<t:errors />
 		<p>
 			<label t:type="label" for="password"/>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/872d0a5a/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/ValidForm.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/ValidForm.tml b/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/ValidForm.tml
index 579c495..46fb2ab 100644
--- a/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/ValidForm.tml
+++ b/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/ValidForm.tml
@@ -1,9 +1,9 @@
-<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
+<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
   <h1>Valid Form</h1>
 
   <p> Tapestry 5 form support with server-side validation. </p>
 
-  <t:form clientValidation="false">
+  <t:form clientValidation="none">
     <t:errors/>
     <t:label for="email">This isn't used</t:label>: <input t:type="TextField" t:id="email"
       value="incident.email" size="50" t:validate="required"/>