RE: maxlength validator implies required???

2003-10-07 Thread Fenderbosch, Eric
Take a look at the maxlength definition inside validator-rules.xml.



Does your "depends" specify "required"?

-Original Message-
From: Max Kremer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 13:13
To: [EMAIL PROTECTED]
Subject: maxlength validator implies required???


Hi, 
I'm using the maxlength validator as follows in validator.xml 




maxlength
300

 
But for some reason when the field is left blank the validator returns a message that 
the field is required even though I am NOT using the required validator. Does 
maxlength IMPLY required Has anybody else experienced this behaviour?
Regards,

Max Kremer


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



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



RE: Maxlength validation returns null in error message

2002-10-29 Thread Jeff Born
Thanks for the info, that fixed it for me.  Also cleared up the arg0, arg1,
arg2 confusion.

jb

-Original Message-
From: Nekkalapudi, Viplava [mailto:VNekkalapudi@;erac.com]
Sent: Tuesday, October 29, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: RE: Maxlength validation returns null in error message


I think, "arg2" is only required for the range validation error message not
for minlength/maxlength.
please check for the error messages declared in the validator-rules.xml.
But in the struts-example application in validation.xml, "arg2" is declared
for maxlength,

   
   
   
   ..

Make arg2 to arg1 for the maxlength and it should work.

-Original Message-
From: Jeff Born [mailto:jborn@;gr.com]
Sent: Monday, October 28, 2002 8:12 PM
To: [EMAIL PROTECTED]
Subject: Maxlength validation returns null in error message


Hi all,
 
I've looking at the struts-example.war in 1.1b2 and when running through the
login.jsp page I keep getting the following "username can not be greater
than
null characters."  This happens via the JavaScript validation.  I thought
maybe it might be JavaScript related, but when I remove the onsubmit and let
the server validate I end up with the same message.
 
I think I found somewhere that this is an open error, but not sure where to
check.  Any direction here?
 
Is there a simple fix?
 
Is a fix in the works?
 
Thanks,
 
jb

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: Maxlength validation returns null in error message

2002-10-29 Thread Nekkalapudi, Viplava
I think, "arg2" is only required for the range validation error message not
for minlength/maxlength.
please check for the error messages declared in the validator-rules.xml.
But in the struts-example application in validation.xml, "arg2" is declared
for maxlength,

   
   
   
   ..

Make arg2 to arg1 for the maxlength and it should work.

-Original Message-
From: Jeff Born [mailto:jborn@;gr.com]
Sent: Monday, October 28, 2002 8:12 PM
To: [EMAIL PROTECTED]
Subject: Maxlength validation returns null in error message


Hi all,
 
I've looking at the struts-example.war in 1.1b2 and when running through the
login.jsp page I keep getting the following "username can not be greater
than
null characters."  This happens via the JavaScript validation.  I thought
maybe it might be JavaScript related, but when I remove the onsubmit and let
the server validate I end up with the same message.
 
I think I found somewhere that this is an open error, but not sure where to
check.  Any direction here?
 
Is there a simple fix?
 
Is a fix in the works?
 
Thanks,
 
jb

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Maxlength validation returns null in error message

2002-10-29 Thread Nekkalapudi, Viplava
I think, "arg2" is only required for the range validation error message not
for minlength/maxlength.
please check for the error messages declared in the validator-rules.xml.
But in the struts-example application in validation.xml, "arg2" is declared
for maxlength,

   
   
   
   ..

Make arg2 to arg1 for the maxlength and it should work.

-Original Message-
From: Jeff Born [mailto:jborn@;gr.com]
Sent: Monday, October 28, 2002 8:12 PM
To: [EMAIL PROTECTED]
Subject: Maxlength validation returns null in error message


Hi all,
 
I've looking at the struts-example.war in 1.1b2 and when running through the
login.jsp page I keep getting the following "username can not be greater
than
null characters."  This happens via the JavaScript validation.  I thought
maybe it might be JavaScript related, but when I remove the onsubmit and let
the server validate I end up with the same message.
 
I think I found somewhere that this is an open error, but not sure where to
check.  Any direction here?
 
Is there a simple fix?
 
Is a fix in the works?
 
Thanks,
 
jb

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: maxlength

2001-11-26 Thread David Winterfeldt

If you use the validation framework, there is a max
length validation.  It is the nightly build and also
posted at the link below.

http://home.earthlink.net/~dwinterfeldt

David

--- Leo Grove <[EMAIL PROTECTED]> wrote:
> try ezverify at ezverify.com. It's currently beta,
> but it will apply length
> restictions on textarea tags on the server-side.
> 
> Leo
> 
> -Original Message-
> From: Mahesh Agarwal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 22, 2001 7:04 AM
> To: [EMAIL PROTECTED]
> Subject: maxlength
> 
> 
> hi all
> 
> we dont have any maxlength attribute for textArea in
> struts, can anyone tell
> me how to give a restriction on input characters on
> text area field
> 
> thanks a lot in advance
> mahesh
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: maxlength

2001-11-22 Thread John Yu

You can wrap the textarea inside a table. You may also want to take a look at:

   http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01251.html

At 06:33 pm 22-11-2001 +0530, you wrote:
>hi all
>
>we dont have any maxlength attribute for textArea in struts, can anyone tell
>me how to give a restriction on input characters on text area field
>
>thanks a lot in advance
>mahesh
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: maxlength

2001-11-22 Thread Leo Grove

try ezverify at ezverify.com. It's currently beta, but it will apply length
restictions on textarea tags on the server-side.

Leo

-Original Message-
From: Mahesh Agarwal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 7:04 AM
To: [EMAIL PROTECTED]
Subject: maxlength


hi all

we dont have any maxlength attribute for textArea in struts, can anyone tell
me how to give a restriction on input characters on text area field

thanks a lot in advance
mahesh

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: maxlength in

2001-10-04 Thread Geddes, Mark (ANTS)



You 
can't. There is no MAXLENGTH attribute for the TEXTAREA tag in 
html.
You 
can check the length in the form bean after the user has submitted the form, or 
maybe you could use javascript.
 
Mark

  -Original Message-From: prakhar 
  [mailto:[EMAIL PROTECTED]]Sent: 04 October 2001 
  14:15To: [EMAIL PROTECTED]Subject: 
  maxlength in 
  I am using 
   . I want to validate maxlength = 128. How 
  Can I do it.
   
  Prakhar

***
This email message contains confidential information for the above addressee only.  If you are not the intended addressee you must not disclose or use the information in any manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not represent those of the Company in any way and reliance should not be placed upon its contents.

Unless otherwise stated this email message is not intended to be contractually binding.  Where an Agreement exists between our respective companies and there is conflict between the contents of this email message and the Agreement then the terms of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by the SFA
***