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


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

Reply via email to