Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 84974 invoked from network); 7 Jul 2005 14:23:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2005 14:23:40 -0000 Received: (qmail 88040 invoked by uid 500); 7 Jul 2005 14:23:34 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 87971 invoked by uid 500); 7 Jul 2005 14:23:33 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 87958 invoked by uid 99); 7 Jul 2005 14:23:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [213.46.255.15] (HELO viefep13-int.chello.at) (213.46.255.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 07:23:20 -0700 Received: from [192.168.1.31] (really [62.178.239.20]) by viefep13-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050707141930.XZUT23973.viefep13-int.chello.at@[192.168.1.31]> for ; Thu, 7 Jul 2005 16:19:30 +0200 Message-ID: <42CD39F0.6030607@apache.org> Date: Thu, 07 Jul 2005 16:19:28 +0200 From: Reinhard Poetz User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [CForms] Add isValid() to a widget? References: <42CD1680.4080300@apache.org> In-Reply-To: <42CD1680.4080300@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Carsten Ziegeler wrote: > Afaik, there is no way to check in java if a widget is valid. > Does anyone care if I add a isValid() method? > > The validate() method can't be used as that method starts the validation > process. Can't you just call getValidationError() and if it returns null you know that there is no error? -- Reinhard P�tz Independent Consultant, Trainer & (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc --------------------------------------------------------------------