cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Garulli <l.garu...@gmail.com>
Subject Re: Client side validation for CForms
Date Mon, 14 Mar 2005 17:10:12 GMT
Hi, I've committed a new version of client-side validation.

New version with the following improvements:

- I18N for all error messages
- support for min/max/exact length and range constraints
- support for regexp contraints (specify a pattern to match)
- immediate check for type field: you cannot enter non-numeric char in
a numeric field

Download new attachments below:

http://issues.apache.org/bugzilla/show_bug.cgi?id=32419

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 Mon, 7 Feb 2005 15:17:31 +0100, Luca Garulli <l.garulli@gmail.com> wrote:
> 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
> <pguillard@soociety.com> 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:
> >         <xsl:for-each select="..//fi:field">
> >           validation_register_widget( '<xsl:value-of select="@id"/>',
> >                                       <xsl:if
> > test="@required='true'">true</xsl:if>,
> >                                       '<xsl:value-of
> > select="fi:datatype/@type"/>',
> >                                       '<xsl:value-of
> > select="fi:datatype/fi:convertor/@pattern"/>' );
> >         </xsl:for-each>
> >
> > 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

Mime
View raw message