On Tue, 7 Aug 2007 10:57:03 +0200
Federico Fanton <[EMAIL PROTECTED]> wrote:

> I tried as you suggested, but I'm facing a little problem..
> If I'm not mistaken, "onError" is called on form validation,
> so I added my check for "no data" in a FormValidator.. My
> problem is that this check needs the form CompoundPropertyModel
> to be up to date with the form contents, but form validation is
> called *before* the model gets updated.. Am I going the wrong way? :/

I solved by overriding my button's "onSubmit" with something like

Form f=getForm();
f.process();
// snipped check for data size
if(showAlert){
   f.error("no data!");
   f.onError();
}

How does it look like? ^^;

Many thanks again for your help!


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

Reply via email to