You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by an...@apache.org on 2007/03/17 20:40:43 UTC

svn commit: r519429 - in /tapestry/tapestry4/trunk: src/site/apt/usersguide/validation.apt tapestry-framework/src/java/org/apache/tapestry/form/validator/Identity.java

Author: andyhot
Date: Sat Mar 17 12:40:43 2007
New Revision: 519429

URL: http://svn.apache.org/viewvc?view=rev&rev=519429
Log:
TAPESTRY-410: docs

Modified:
    tapestry/tapestry4/trunk/src/site/apt/usersguide/validation.apt
    tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Identity.java

Modified: tapestry/tapestry4/trunk/src/site/apt/usersguide/validation.apt
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/src/site/apt/usersguide/validation.apt?view=diff&rev=519429&r1=519428&r2=519429
==============================================================================
--- tapestry/tapestry4/trunk/src/site/apt/usersguide/validation.apt (original)
+++ tapestry/tapestry4/trunk/src/site/apt/usersguide/validation.apt Sat Mar 17 12:40:43 2007
@@ -162,6 +162,10 @@
 *-----------------+-------------------------------------------+
  {{{../apidocs/org/apache/tapestry/form/validator/MinLength.html}MinLength}} | <<< minLength=<minmum length, 15> >>>
 *-----------------+-------------------------------------------+
+ {{{../apidocs/org/apache/tapestry/form/validator/Identity.html}Match}} | <<< match=<component to compare against> (since v4.1.2)>>>
+*-----------------+-------------------------------------------+
+ {{{../apidocs/org/apache/tapestry/form/validator/Identity.html}Differ}} | <<< differ=<component to compare against> (since v4.1.2)>>>
+*-----------------+-------------------------------------------+
 
 ** translator: binding prefix
 

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Identity.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Identity.java?view=diff&rev=519429&r1=519428&r2=519429
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Identity.java (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Identity.java Sat Mar 17 12:40:43 2007
@@ -94,7 +94,8 @@
         accumulateProperty(cons, field.getClientId(), 
                 new JSONLiteral("[" + func + ",\""
                         + referent.getClientId() + "\"]"));                
-        
+        // could define and use a new ValidationConstants.CONFIRM here to apply to
+        // the profile, but it doesn't support differ.
         accumulateProfileProperty(field, profile, 
                 ValidationConstants.CONSTRAINTS, buildIdentityMessage(context, field, referent));        
     }