Re: Help - I cannot validate a simple form with 2 fields

2005-09-22 Thread Francisco Antonio Vieira Souza
Alright thanks, you know what? I am giving up Struts I dont understand why this stuff has to be so complicated and nobody in the whole world knows anything about it, I am Swing developer and I think I will keep that. Thanks anyway Laurie Harper escreveu: Erm, yes? You were complaining th

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Laurie Harper
Erm, yes? You were complaining that validator wasn't being invoked after you switched to sub-classing ActionForm directly / implementing validate() yourself. I was just pointing out that it's not expected to be in that case. L. Francisco Antonio Vieira Souza wrote: Everything you said IS her

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Francisco Antonio Vieira Souza
Everything you said IS here. Laurie Harper escreveu: If you are just using an ActionForm subclass you wrote, Validator isn't used so the behaviour you're now seeing is correct. If you want to use Validator, your ActionForm class needs to extend ValidatorForm or ValidatorActionForm rather than

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Laurie Harper
If you are just using an ActionForm subclass you wrote, Validator isn't used so the behaviour you're now seeing is correct. If you want to use Validator, your ActionForm class needs to extend ValidatorForm or ValidatorActionForm rather than ActionForm; if you want to include a validate() method

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Francisco Antonio Vieira Souza
5 8:30 PM To: Struts Users Mailing List Subject: Re: Help - I cannot validate a simple form with 2 fields I really dont get it, I might be being so stupid not figuring out what is going on wrong here, but I dont. Clearing a little. I decided not to use DynaForm and go back to the usual ActionForm and

RE: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread rahul
try this errors.add("usuario", new ActionError("login.usuario.requerido")); > -Original Message- > From: Francisco Antonio Vieira Souza [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 21, 2005 8:30 PM > To: Struts Users Mailing List > Subj

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Francisco Antonio Vieira Souza
I really dont get it, I might be being so stupid not figuring out what is going on wrong here, but I dont. Clearing a little. I decided not to use DynaForm and go back to the usual ActionForm and gave up using Client-side validation. When I implement the validate method of the Bean (as it is

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Niall Pemberton
On the client side validation it looks like you have spelt the javascript method name wrong in the form's onsubmit event. You can easily check the client side by seeing what javascript has been generated for the page by viewing the source. For the sever side I can't see anything obviously wrong. P