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
language/country specified) in your validation.xml? In case it is not using the pt_BR locale for some reason it would be a good idea to have a default formset. Niall - Original Message - From: "Francisco Antonio Vieira Souza" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 2

Help - I cannot validate a simple form with 2 fields

2005-09-20 Thread Francisco Antonio Vieira Souza
Hi all, I really need a big help in validation with Struts, I dont know why but I just cant validate a very simple form I have, with 2 simple fields (login and password), I have follown all tutorials I got but til now no success. I am not able to validate either in server side or client side