cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jian Dai" <>
Subject RE: Form Validation
Date Mon, 27 Oct 2003 18:15:10 GMT
Hi, Christ:

Here attached a sample of my problem. 

Here is the decription file


<?xml version="1.0"?>

  <parameter name="username" type="string" max-len="30"
  <parameter name="password" type="string" max-len="30"

  <constraint-set name="check">
   <validate name="username"/>
   <validate name="password"/>


This is a simple login form, I have two fields (username and password). 
If I gave the validate value for this two fields, I expect
<form-val:is-error /> return false. But actually I had are
<form-val:is-error name="username" /> return false (no error) and 
<form-val:is-error name="password" /> return false (no error) but
<form-val:is-error /> return true (has ERROR!). 

I did further search and found <form-val:notpresent /> return true in 
this case. 

Since I only have two attributes in this case, I do not know why I was 
in such a weird situation. 

Many thanks in advance for nice help. 


-----Original Message-----
From: Christian Haul []
Sent: Sunday, October 26, 2003 5:45 AM
Subject: Re: Form Validation

Jian Dai wrote:
> Hi, all,
> I have a problem with I use form validation logical sheet. 
> I set up a descriptor file and constraint set. In my form, I 
> have every parameters in constraint set validated. But I still
> get <form-value:notpresent-error /> in general form. (If I define a
> name, than I do not have such error. 
> Is there anybody has a clue about it?

Could you post a sample that shows the problem? (input, output + 
expected output)


C h r i s t i a n       H a u l
     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message