Hi!

I have got a problem with the rules for checking field values in intake. 
Somehow I cannot check for empty fields. I define the rule as explained in the 
docs like this:

..
<field name="PersonName" key="personname" type="String">
    <rule name="minLength" value="1">Bitte geben Sie den Nachnamen an.</rule>
</field>
..

When I leave the field empty, intake does not report an error. 
(isAllValid() still returns true)
I have experimented a bit with intake, and other rules actually do work as 
expected, if the field value is not empty. It seems the rules simply 
bypassed for empty fields and no checks are applied. So I also tried 
setting the required messsage:

..
<field name="PersonName" key="personname" type="String">
  <required-message>Bitte geben Sie den Nachnamen an.</required-message>
</field>
..

Again, no error when I leave the field empty. Is this a bug in the intake 
service (included in TDK 2.1 release) or am I doing something wrong?

Best regards,
 Edmund Urbani

BTW: Apart from the above problem intake works fine and I am quite happy 
with it. 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to