Hi all,

 

I am facing a problem with required attribute with multivalue field in cocoon.I have a multivalue field in my form as

 

         <fd:multivaluefield id="testMultiValue" required="true">

            <fd:datatype base="string"/>

            <fd:selection-list />

         </fd:multivaluefield>

 

Referring to above definition I have made the required attribute set and in the screen if I press submit button even though if the multivalue field has nothing it is getting submitted. What I expect is it should not get submitted , it should remain in the form

With validation error set next to the multivalue field .

 

I have tried with setValidationError also in the flowscript.  Using

 

newDeptWidget. testMultiValue.setValidationError("multi value cannot be empty");

 

Now it is remaining in the same form but the validation error is not set.

 

Can any one give me reasons why? Or anyone can suggest something else to validate the multivalue field in cocoon.



Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

Reply via email to