Hi Tim !

Thanks for your answer.
It seems that all my required fields are present, excepts a repeater (that is not required if such attribute is valid for a repeater) because there is no rows in.


And the isValid() returns false...
argh !

--
Olivier


On 06/01/2004 17:11, Tim Larson wrote:


--- Olivier Billard <[EMAIL PROTECTED]> wrote:

Hi cocooners !


Hello!


My flow validator function begins with :
<code>
if (!form.getWidget().isValid()) {
    return false;
}
</code>

But even when the form seems to be valid, isValid() returns false, and I can never run "business validation" code after the test...


Usually this is caused by the form template not including a widget which is marked
with 'required="true"'.  Because the widget is not in the template, it is not returned
in the form post, and thus is set to null during readFromRequest() causing the form
(at least the visible parts that were included in the template) to look valid while
there is actually still an invalid widget.

HTH,
--Tim Larson



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



Reply via email to