Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 1584 invoked from network); 7 Feb 2005 14:17:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Feb 2005 14:17:38 -0000 Received: (qmail 605 invoked by uid 500); 7 Feb 2005 14:17:36 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 409 invoked by uid 500); 7 Feb 2005 14:17:35 -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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 396 invoked by uid 99); 7 Feb 2005 14:17:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of l.garulli@gmail.com designates 64.233.184.204 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.204) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 07 Feb 2005 06:17:34 -0800 Received: by wproxy.gmail.com with SMTP id 55so1056466wri for ; Mon, 07 Feb 2005 06:17:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=tbiPx0+L2RzBH79qX7b/d4fsRVJeIWnIVonMQ8rs1Kta8VMmpqsJT791QyAxRAq02/NYpf+Vf1LPedmPhzAqQ5nYmaxy7BQBVyfcCjx9BqvvJ8rKiidogIxkv1nptareG3vpLuwA8ktJMWOiBXHIKaMSDhJxCUVY7Chgaxh50Uw= Received: by 10.54.43.11 with SMTP id q11mr6981wrq; Mon, 07 Feb 2005 06:17:32 -0800 (PST) Received: by 10.54.28.46 with HTTP; Mon, 7 Feb 2005 06:17:31 -0800 (PST) Message-ID: Date: Mon, 7 Feb 2005 15:17:31 +0100 From: Luca Garulli Reply-To: Luca Garulli To: dev@cocoon.apache.org Subject: Re: Client side validation for CForms In-Reply-To: <4206147F.1090304@soociety.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200412201754.iBKHsh8O001276@ajax.apache.org> <4206147F.1090304@soociety.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Philippe, I changed the client side validation a lot in these days to support much more things. I'll post it ASAP in bugzilla, please check tomorrow ;-) bye, Luca Garulli www.Pro-Netics.com (member of Orixo.com - The XML business alliance) OrienTechnologies.com - Light ODBMS, All in one JDO solution On Sun, 06 Feb 2005 20:58:39 +0800, Philippe Guillard wrote: > Hi all, > > My idea is to systematically use server-side validation as it is > necessary, + some client-side to be confortable for the user. > I used the (great) patch found in > http://issues.apache.org/bugzilla/show_bug.cgi?id=32419. > Anyway i get trouble when i think about string lenght limitation. > The main hack in this patch is this: > > validation_register_widget( '', > test="@required='true'">true, > ' select="fi:datatype/@type"/>', > ' select="fi:datatype/fi:convertor/@pattern"/>' ); > > > Problem: fi:validation/fd:length/@max seems not to be disponible in > output of the CForm transformer. > > that part is a big one! So i ask if somebody has another idea/did it/ or > can give me hints to do it. > > Regards, > > Phil