myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1797050 - in /myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00: content-validation.test.js content-validation.xhtml
Date Wed, 31 May 2017 14:55:34 GMT
Author: lofwyr
Date: Wed May 31 14:55:34 2017
New Revision: 1797050

URL: http://svn.apache.org/viewvc?rev=1797050&view=rev
Log:
codestyle: unique ids

Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.test.js
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.xhtml

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.test.js?rev=1797050&r1=1797049&r2=1797050&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.test.js
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.test.js
Wed May 31 14:55:34 2017
@@ -23,7 +23,7 @@ QUnit.test("Required: Submit without con
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
   var $textarea = jQueryFrame("#page\\:mainForm\\:required\\:textarea\\:\\:field");
   var textareaValue = $textarea.val();
-  var $submit = jQueryFrame("#page\\:mainForm\\:required\\:submit");
+  var $submit = jQueryFrame("#page\\:mainForm\\:required\\:submit_r");
 
   $textarea.val("");
   $submit.click();
@@ -47,7 +47,7 @@ QUnit.test("Required: Submit with conten
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
   var $textarea = jQueryFrame("#page\\:mainForm\\:required\\:textarea\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:required\\:submit");
+  var $submit = jQueryFrame("#page\\:mainForm\\:required\\:submit_r");
 
   $textarea.val("some content");
   $submit.click();
@@ -71,8 +71,8 @@ QUnit.test("Validate Length: Submit sing
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:validateLength\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:validateLength\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:validateLength\\:in_vl\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:validateLength\\:submit_vl");
 
   $in.val("a");
   $submit.click();
@@ -94,8 +94,8 @@ QUnit.test("Validate Length: Submit two
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:validateLength\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:validateLength\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:validateLength\\:in_vl\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:validateLength\\:submit_vl");
 
   $in.val("ab");
   $submit.click();
@@ -117,8 +117,8 @@ QUnit.test("Validate Range: Submit no nu
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:validateRange\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:validateRange\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:validateRange\\:in_vr\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:validateRange\\:submit_vr");
 
   $in.val("no number");
   $submit.click();
@@ -140,8 +140,8 @@ QUnit.test("Validate Range: Submit numbe
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:validateRange\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:validateRange\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:validateRange\\:in_vr\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:validateRange\\:submit_vr");
 
   $in.val("2");
   $submit.click();
@@ -163,8 +163,8 @@ QUnit.test("Validate Range: Submit numbe
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:validateRange\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:validateRange\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:validateRange\\:in_vr\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:validateRange\\:submit_vr");
 
   $in.val("78");
   $submit.click();
@@ -186,8 +186,8 @@ QUnit.test("Validate Range: Submit numbe
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:validateRange\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:validateRange\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:validateRange\\:in_vr\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:validateRange\\:submit_vr");
 
   $in.val("64");
   $submit.click();
@@ -209,8 +209,8 @@ QUnit.test("Regex Validation: Submit 'T'
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:regexValidation\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:regexValidation\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:regexValidation\\:in_rv\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:regexValidation\\:submit_rv");
 
   $in.val("T");
   $submit.click();
@@ -232,8 +232,8 @@ QUnit.test("Regex Validation: Submit '3'
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:regexValidation\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:regexValidation\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:regexValidation\\:in_rv\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:regexValidation\\:submit_rv");
 
   $in.val("3");
   $submit.click();
@@ -255,8 +255,8 @@ QUnit.test("Regex Validation: Submit 'T3
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:regexValidation\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:regexValidation\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:regexValidation\\:in_rv\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:regexValidation\\:submit_rv");
 
   $in.val("T3");
   $submit.click();
@@ -278,8 +278,8 @@ QUnit.test("Custom Validator: Submit rej
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:customValidator\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:customValidator\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:customValidator\\:in_cv\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:customValidator\\:submit_cv");
 
   $in.val("java");
   $submit.click();
@@ -301,8 +301,8 @@ QUnit.test("Custom Validator: Submit acc
   var step = 1;
 
   var $messages = jQueryFrame("#page\\:messages.tobago-messages div");
-  var $in = jQueryFrame("#page\\:mainForm\\:customValidator\\:in\\:\\:field");
-  var $submit = jQueryFrame("#page\\:mainForm\\:customValidator\\:submit");
+  var $in = jQueryFrame("#page\\:mainForm\\:customValidator\\:in_cv\\:\\:field");
+  var $submit = jQueryFrame("#page\\:mainForm\\:customValidator\\:submit_cv");
 
   $in.val("tobago");
   $submit.click();

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.xhtml?rev=1797050&r1=1797049&r2=1797050&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/06-validation/00/content-validation.xhtml
Wed May 31 14:55:34 2017
@@ -39,7 +39,7 @@
     <pre><code class="language-markup">&lt;tc:textarea label="Text Area"
required="true"/></code></pre>
     <tc:form id="required">
       <tc:textarea id="textarea" label="Text Area" required="true"/>
-      <tc:button id="submit" label="Submit"/>
+      <tc:button id="submit_r" label="Submit"/>
     </tc:form>
   </tc:section>
 
@@ -52,10 +52,10 @@
   &lt;f:validateLength minimum="2" maximum="4"/>
 &lt;/tc:in></code></pre>
     <tc:form id="validateLength">
-      <tc:in id="in" label="Text">
+      <tc:in id="in_vl" label="Text">
         <f:validateLength minimum="2" maximum="4"/>
       </tc:in>
-      <tc:button id="submit" label="Submit"/>
+      <tc:button id="submit_vl" label="Submit"/>
     </tc:form>
   </tc:section>
 
@@ -67,10 +67,10 @@
   &lt;f:validateLongRange minimum="3" maximum="77"/>
 &lt;/tc:in></code></pre>
     <tc:form id="validateRange">
-      <tc:in id="in" label="Number" markup="number">
+      <tc:in id="in_vr" label="Number" markup="number">
         <f:validateLongRange minimum="3" maximum="77"/>
       </tc:in>
-      <tc:button id="submit" label="Submit"/>
+      <tc:button id="submit_vr" label="Submit"/>
     </tc:form>
   </tc:section>
 
@@ -82,10 +82,10 @@
 &lt;/tc:in></code></pre>
     <tc:form id="regexValidation">
       <p>The value in the field must be a word character combined with a number. For
example 'T3'.</p>
-      <tc:in id="in" label="Letter &amp; Number" value="#{validationController.letter}">
+      <tc:in id="in_rv" label="Letter &amp; Number" value="#{validationController.letter}">
         <f:validateRegex pattern="[A-Za-z][0-9]"/>
       </tc:in>
-      <tc:button id="submit" label="Submit"/>
+      <tc:button id="submit_rv" label="Submit"/>
     </tc:form>
   </tc:section>
 
@@ -93,8 +93,8 @@
     <p>It's also possible to add custom validators using the <code>validator</code>
attribute of an input component.
       In this case, only the string 'Tobago' (uppercase/lowercase ignored) is accepted.</p>
     <tc:form id="customValidator">
-      <tc:in id="in" label="Text" validator="#{validationController.customValidator}"/>
-      <tc:button id="submit" label="Submit"/>
+      <tc:in id="in_cv" label="Text" validator="#{validationController.customValidator}"/>
+      <tc:button id="submit_cv" label="Submit"/>
     </tc:form>
   </tc:section>
 



Mime
View raw message