After some time unsuccessfully trying t put my cforms code working with
validation a I had to take the examples in cocoon/samples/blocks/forms/ and
step by step change the file form1.xml, until I see where was my mistake. 

And... for my surprise!!! I found if I comment the line <fd:value-count
exact="2"/> the validation won't work anymore.

Is this a bug? A feature? Or something wrong in my configuration?


    <fd:multivaluefield id="drinks">
      <fd:label>Indicate which 2 of the following drinks you'd like to
receive:</fd:label>
      <fd:datatype base="string"/>
      <fd:validation>
        <!--fd:value-count exact="2"/-->            <!-- commented line in
cocoon/samples/blocks/forms/form1.xml -->
      </fd:validation>
      <fd:selection-list>
        <fd:item value="Maes"/>
        <fd:item value="Jupiler"/>
        <fd:item value="Leffe"/>
        <fd:item value="Hoegaarden"/>
        <fd:item value="Coca Cola"/>
      </fd:selection-list>
    </fd:multivaluefield>
 
 
 
Isidro Vila Verde
email:[EMAIL PROTECTED]
web: http://serprest.pt/
tel: 223743701
tel: 969103006 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.672 / Virus Database: 434 - Release Date: 28-04-2004
 


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

Reply via email to