Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Dave Newton
What happens? What do you expect to happen? What's your validation config? We need something beyond it doesn't work. Dave On Sep 2, 2011 3:47 AM, RajasekharReddy pamired...@gmail.com wrote: I am trying to implement Client-Side Validations using struts 1.3 But server Side validations are

Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Brian Thompson
I'm not familiar with the html:form tag; does that auto-include the script defining the validateForm() function? If not, I'd suggest a missing script in the html as a likely culprit ... at least, without any further info! Brian On Fri, Sep 2, 2011 at 5:47 AM, Dave Newton davelnew...@gmail.com

Re: Struts Validator Framework: problem with Custom Validator

2008-06-26 Thread cacodemon79
No-reply? :( However, I solved. Now all works well. ** SERVER-SIDE ** To avoid the deprecated method Resources.getActionMessage(HttpServletRequest request, ValidatorAction va, Field field) I used Resources.getActionMessage(Validator v, HttpServletRequest request, ValidatorAction

Re: Struts Validator Framework: problem with Custom Validator

2008-06-25 Thread cacodemon79
Now, server-side validation works! I changed ActionErrors class with ActionMessages class into my java validation method and into validator-rules.xml. The only problem is that Resources.getActionMessage(request, va, field) method in my custom validator class is deprecated and I don't know how to

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-24 Thread cacodemon79
Thank you very much. Laurie Harper wrote: I did what I should have done in the first place and looked it up: Form.submit() is specified to *not* call the onsubmit handler, so this is the correct behaviour (and should be consistent across all browsers). When in doubt, check the

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread cacodemon79
No suggestions? :( I also tried to use document.registrazioneUtenteForm.submit()) instead of eval(document.+nomeForm+.submit()) but the result is the same. The form is submitted but I can't see any javascript alerts. I can't understand where is the problem. I hope you can help me. Thanks.

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
Hi, Maybe you should install Firebug for Firefox (not working with 3.0) and debug the JavaScript? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Laurie Harper
Did you confirm whether calling the form's submit() method triggers its onsubmit handler? It may be that calling submit() bypasses it, in which case an explicit guard in your submit function might do the trick: function submitRegistrazioneUtenteForm(nomeForm){ var form = ...; if

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread cacodemon79
Bingo! Now it works! Thanks a lot. However i can't understand why the onsubmit handler is not triggered by the submit() function! Laurie Harper wrote: Did you confirm whether calling the form's submit() method triggers its onsubmit handler? It may be that calling submit() bypasses it, in

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
Hi, 2008/6/23 cacodemon79 [EMAIL PROTECTED]: Bingo! Now it works! Thanks a lot. However i can't understand why the onsubmit handler is not triggered by the submit() function! Maybe it depends on Web Browser, did you try with others? Regards -- Lukasz http://www.lenart.org.pl/

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Laurie Harper
I did what I should have done in the first place and looked it up: Form.submit() is specified to *not* call the onsubmit handler, so this is the correct behaviour (and should be consistent across all browsers). When in doubt, check the documentation :-) L. cacodemon79 wrote: Bingo! Now it

RE: Struts validator framework

2008-05-15 Thread Givler, Eric
You define the field label using an argument, i.e. field property=username depends=required arg0 key=prompt.username/ /field So the validator is using the field's label to fill in the message. The default message for errors.required is: errors.required={0} is required. So, it will

RE: Struts Validator Framework

2005-08-29 Thread Ashutosh Satyam
List Subject: RE: Struts Validator Framework Hi Hubert, Thanks for your response. It worked the way you told by using dot delimiters to point out the nested object. On the same lines, I have one more question. How do I validate an array of objects. This is my class strucutre

RE: Struts Validator Framework

2005-08-25 Thread Ashutosh Satyam
(Validator.java:367) Could you tell me where am I doing wrong. Regards, Ashutosh -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thu 8/25/2005 1:36 AM To: Struts Users Mailing List Cc: Subject: Re: Struts Validator

Re: Struts Validator Framework

2005-08-24 Thread Hubert Rabago
I've never used Validator outside of Struts, but I do know I've successfully referenced nested elements while validating, by using dot notation. In your case, you can refer to fields a, b, obj.i, obj.j, obj.obj.k. Hubert On 8/24/05, Ashutosh Satyam [EMAIL PROTECTED] wrote: Hi, I am using the