Return-Path: X-Original-To: apmail-struts-commits-archive@minotaur.apache.org Delivered-To: apmail-struts-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8BDCEC0E for ; Sun, 13 Jan 2013 11:23:21 +0000 (UTC) Received: (qmail 10245 invoked by uid 500); 13 Jan 2013 11:23:21 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 10194 invoked by uid 500); 13 Jan 2013 11:23:21 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 10176 invoked by uid 99); 13 Jan 2013 11:23:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jan 2013 11:23:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jan 2013 11:23:19 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D427A23889DA; Sun, 13 Jan 2013 11:22:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@struts.apache.org From: lukaszlenart@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130113112259.D427A23889DA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 *
    *
  • fieldName - The field name this validator is validating. Required if using Plain-Validator Syntax otherwise not required
  • *
+ * Check also documentation of the RegexpValidator for more details - the EmailValidator bases on it. * * * - * 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! * * *
@@ -60,7 +61,6 @@ package com.opensymphony.xwork2.validato
  *     <!-- Field Validator Syntax with expressions -->
  *     <field name="myEmail">
  *        <field-validator type="email">
- *           <param name="parse">true</param>*
  *           <param name="regexExpression">${emailPattern}</param> <!-- will be evaluated as: String getEmailPattern() -->
  *           <param name="caseSensitiveExpression">${emailCaseSensitive}</param> <!-- will be evaluated as: boolean getEmailCaseSensitive() -->
  *           <param name="trimExpression">${trimEmail}</param> <!-- will be evaluated as: boolean getTrimEmail() -->