cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barbara Post" <bab...@ifrance.com>
Subject form validator and regexp problem...
Date Fri, 30 Aug 2002 13:36:10 GMT
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