As I think I mentioned earlier, the error is probably because a parameter
cannot be set properly. This is handled in the BeanUtil class. In case of
error BeanUtil calls the addIllegalArgumentException method in
ActionSupport. As I suggested before, you might also want to override this
method in order to better be able to see what the problem is. I'd suggest
you log the fieldName and the exception in that case.
The fieldname put in the error map (which is why getHasErrors returns true),
so you should be able to get a hint of what field there is a problem with
(what parameter, that is).
If you still cannot locate the problem then post your form and action here
and we'll see if we can help you find it.

Cheers,

Dick Zetterberg
[EMAIL PROTECTED]


----- Original Message -----
From: "G.L. Grobe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 29, 2003 2:47 AM
Subject: [OS-webwork] invalidInput, getHasErrors ... but no errors


>
> I fill out a form which contains a checkbox that sets a setter method
> in my ActionSupport class. After I submit the form, the setter method
> gets called setting my value to true. Then the validate() methods gets
> called which contains invalidInput() and getHasErrors(), both of which
> return true (I overrode that method to see it). Then the doExecute()
> gets called where I also call invalidInput() and getHasErrors() which
> are true.
>
> The problem is that I can't see where errors are being added. I checked
> my parameters and they seem fine. Every place where I do an addError()
> or addErrorMessage(), none of them are being called.
>
> Any ideas?
>
>




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to