cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jian Dai" <jack2...@comcast.net>
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"?>

<root>
  <parameter name="username" type="string" max-len="30"
     nullable="no"/>
  <parameter name="password" type="string" max-len="30"
     nullable="no"/>

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


++++++++++++++++++++

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. 

Jian

-----Original Message-----
From: Christian Haul [mailto:haul@informatik.tu-darmstadt.de]
Sent: Sunday, October 26, 2003 5:45 AM
To: users@cocoon.apache.org
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)

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


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


Mime
View raw message