cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barbara Post" <bab...@ifrance.com>
Subject Re: form validator and regexp problem...
Date Fri, 30 Aug 2002 13:39:30 GMT
I am a d***a**, it was "regex", not "regexp". Ah well...

----- Original Message -----
From: "Barbara Post" <babs33@ifrance.com>
To: <cocoon-users@xml.apache.org>
Sent: Friday, August 30, 2002 3:36 PM
Subject: form validator and regexp problem...


> Hi,
>
> I use the regexp expression from C 2.0.3 form validator example and want
to
> validate 2 email fields :
>
> in the descriptor :
>
>  <parameter name="emailTo" nullable="no" type="string"
> matches-regexp="^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)\w\w\w?$"/>
> (the same for emailCc)
>
> and :
>
>   <constraint-set name="default">
>   <validate name="emailTo"/>
>   <validate name="emailCc"/>
>  </constraint-set>
>
> However, when I enter "r" in "emailTo" and "e" in "emailCc" fields the
form
> gets validated ! Uh, any idea why ? Thanks,
>
> Babs
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message