struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject svn commit: r1432589 - /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java
Date Sun, 13 Jan 2013 11:22:59 GMT
Author: lukaszlenart
Date: Sun Jan 13 11:22:59 2013
New Revision: 1432589

URL: http://svn.apache.org/viewvc?rev=1432589&view=rev
Log:
WW-3892 updates JavaDoc to match the implementation

Modified:
    struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java

Modified: struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java?rev=1432589&r1=1432588&r2=1432589&view=diff
==============================================================================
--- struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java
(original)
+++ struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java
Sun Jan 13 11:22:59 2013
@@ -34,10 +34,11 @@ package com.opensymphony.xwork2.validato
  * <ul>
  * 		<li>fieldName - The field name this validator is validating. Required if using
Plain-Validator Syntax otherwise not required</li>
  * </ul>
+ * Check also documentation of the RegexpValidator for more details - the EmailValidator
bases on it.
  * <!-- END SNIPPET: parameters -->
  *
  * <!-- START SNIPPET: parameters-warning -->
- * Do not use ${expression}, ${caseSensitive} and ${trim} as an expression as this will turn
into infinitive loop!
+ * Do not use ${regexExpression}, ${caseSensitiveExpression} and ${trimExpression} as an
expression as this will turn into infinitive loop!
  * <!-- END SNIPPET: parameters-warning -->
  * 
  * <pre>
@@ -60,7 +61,6 @@ package com.opensymphony.xwork2.validato
  *     &lt;!-- Field Validator Syntax with expressions --&gt;
  *     &lt;field name="myEmail"&gt;
  *        &lt;field-validator type="email"&gt;
- *           &lt;param name="parse"&gt;true&lt;/param&gt;*
  *           &lt;param name="regexExpression"&gt;${emailPattern}&lt;/param&gt;
&lt;!-- will be evaluated as: String getEmailPattern() --&gt;
  *           &lt;param name="caseSensitiveExpression"&gt;${emailCaseSensitive}&lt;/param&gt;
&lt;!-- will be evaluated as: boolean getEmailCaseSensitive() --&gt;
  *           &lt;param name="trimExpression"&gt;${trimEmail}&lt;/param&gt;
&lt;!-- will be evaluated as: boolean getTrimEmail() --&gt;



Mime
View raw message