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.
|