Return-Path: Delivered-To: apmail-incubator-click-dev-archive@minotaur.apache.org Received: (qmail 76316 invoked from network); 26 Jul 2009 16:46:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jul 2009 16:46:31 -0000 Received: (qmail 78858 invoked by uid 500); 26 Jul 2009 16:47:36 -0000 Delivered-To: apmail-incubator-click-dev-archive@incubator.apache.org Received: (qmail 78833 invoked by uid 500); 26 Jul 2009 16:47:36 -0000 Mailing-List: contact click-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@incubator.apache.org Delivered-To: mailing list click-dev@incubator.apache.org Received: (qmail 78825 invoked by uid 99); 26 Jul 2009 16:47:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jul 2009 16:47:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jul 2009 16:47:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C98B2234C004 for ; Sun, 26 Jul 2009 09:47:14 -0700 (PDT) Message-ID: <2129174743.1248626834811.JavaMail.jira@brutus> Date: Sun, 26 Jul 2009 09:47:14 -0700 (PDT) From: "Bob Schellink (JIRA)" To: click-dev@incubator.apache.org Subject: [jira] Created: (CLK-572) Improve Form validation for subclasses to implement business and cross-field validation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Improve Form validation for subclasses to implement business and cross-field validation --------------------------------------------------------------------------------------- Key: CLK-572 URL: https://issues.apache.org/jira/browse/CLK-572 Project: Click Issue Type: Improvement Components: core Affects Versions: 2.1.0 RC1 Reporter: Bob Schellink Assignee: Bob Schellink Fix For: 2.1.0 Its currently not possible for Form subclasses to override and implement custom business and cross-field validation logic in the #validate method, because the validate method is invoked *before* the Field values are processed and bound to request values. Proposed solution is to rename the current Form.validate() method to Form.validateFileUpload (because that is what is currently does) and introduce a new empty validate method which subclasses can override. This is consistent with the approach taken by Field which also provide an empty validate method which subclasses can implement. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.