Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 56743 invoked from network); 26 Feb 2006 22:14:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Feb 2006 22:14:06 -0000 Received: (qmail 32067 invoked by uid 500); 26 Feb 2006 22:14:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 31657 invoked by uid 500); 26 Feb 2006 22:14:00 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 31646 invoked by uid 99); 26 Feb 2006 22:14:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Feb 2006 14:14:00 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.9.33.3] (HELO mail0.tt.com.au) (203.9.33.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Feb 2006 14:13:59 -0800 Received: from mail0.tt.com.au (localhost [127.0.0.1]) by localhost.tt.com.au (Postfix) with ESMTP id 032BF19265 for ; Mon, 27 Feb 2006 09:15:11 +1100 (EST) Received: from imap.tt.com.au (imap.tt.com.au [10.2.0.9]) by mail0.tt.com.au (Postfix) with ESMTP id E59CC19262 for ; Mon, 27 Feb 2006 09:15:10 +1100 (EST) Received: from [10.2.0.72] (bhatt-2.tt.com.au [10.2.0.72]) by imap.tt.com.au (8.13.4/8.13.4) with ESMTP id k1QMCKna015174 for ; Mon, 27 Feb 2006 09:12:20 +1100 (EST) Message-ID: <44022871.8090301@tt.com.au> Date: Mon, 27 Feb 2006 09:15:13 +1100 From: Kamal Bhatt User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: cforms - validating integers Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi I have a cform with the following field: Min Duration Max duration must an integer greater than 1 and less than 99 When I enter a non-integer character (eg 'a'), the cform fails on save. All other validation works, but obviously, validation does not work until the field is bound to the variable. My question is how to get the field to validate without using javascript (at the form template level) to do so (for the sake of consistency). Cheers. Kamal. -- Kamal Bhatt Tourism Technology Pty Ltd T: +61 (02) 9956 7300 F: +61 (02) 9956 7411 Level 10, 1 Pacific Highway, North Sydney, NSW 2060 http://www.tt.com.au -- Disclaimer: This email is confidential and may contain privileged information for the sole use of the person or business to which it is addressed. If you are not the intended recipient, please notify the sender by return e-mail or phone as you must not view, disseminate, distribute or copy this email without our consent. We do not accept any liability in connection with any computer virus, data corruption, incompleteness, or unauthorised amendment of this email. It is the sole responsibility of the receiver to scan for viruses before opening. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org