Re: Textarea maxlength issue Struts 6.0.0

2022-07-21 Thread Lukasz Lenart
czw., 21 lip 2022 o 18:07 Matt Williams napisaƂ(a): > > For Struts 6.0.0: > The freemarker template for the s:textarea tag is wrong when using > 'maxlength' attribute. It puts the value inside the text area. This is already addressed in incoming 6.0.1 release https://issues.apache.org/jira/brow

Re: textarea Encoding

2008-07-11 Thread Joachim Rohde
Hi, are the values still correct within your controller? And which Server are you using? I once had a similar problem, but I am not sure, if my solution can be applied to your problem. In my case I tried to deliver strings with umlauts as a GET-request-parameter to my controller, which faile

RE: textarea

2006-06-22 Thread Miller, Andy
- From: Mukta [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 9:42 PM To: 'Struts Users Mailing List' Subject: RE: textarea Use following javascript function to limit the number of characters to 255 in a textbox: function checkLength(name) { var textBox = document.getElem

RE: textarea

2006-06-21 Thread Mukta
Sorry I mean "textarea". I have mistakenly written "textbox" for "textarea". Anyways, its just a variable name. Doesn't affect the functionality. -Original Message- From: Mukta [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 10:12 AM To: 

RE: textarea

2006-06-21 Thread Mukta
Use following javascript function to limit the number of characters to 255 in a textbox: function checkLength(name) { var textBox = document.getElementsByName(name)[0].value; if (textBox.length>255) { document.getElementsByName(name)[0].value = textBox.subst

RE: textarea

2006-06-21 Thread Swapan Mazumdar
Hi Abhimanyu, Wouldn't you do the validation the "struts" way? Do the validation, chop and warn. -Original Message- From: Truong Xuan Tinh [mailto:[EMAIL PROTECTED] Sent: 21 June 2006 12:47 PM To: Struts Users Mailing List Subject: Re: textarea You have to write a java

Re: textarea

2006-06-21 Thread Bart Busschots
Abhimanyu Koul wrote: how can i set the maximum number of chars in a textarea. i can only set columns and rows. Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090 The only way to do this would be with JavaScript. You'd do something like this: function checkLeng

Re: textarea

2006-06-21 Thread Truong Xuan Tinh
You have to write a javascript function to check in the following event: onFocus, onChange and onKeyUp of the textarea. Regards, Abhimanyu Koul wrote: > how can i set the maximum number of chars in a textarea. i can only set > columns and rows. > > Regards, > Abhimanyu Koul > FinEng Solutions (P)

RE: textarea

2006-06-21 Thread nageshkumar.siddu
Hi, Call a javascript method onKeyPressDown to validate the length. --CODE-- function checkLength(obj,max){ if(obj.value.length>max){ alert(obj.name+" feild cannot be more than "+max); } } /// some HTML /// some HTML --CODE-

RE: TextArea

2005-07-20 Thread Folashade Adeyosoye
have entered " + len + " characters."); field.value=field.value.substring(0,field.value.length+max_comment-len); field.focus(); } } // --> Shardayyy -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 10:56 AM To

Re: TextArea

2005-07-20 Thread Steve Bosman
On 7/20/05, Larry Meadors <[EMAIL PROTECTED]> wrote: > Yep, not an option in HTML, gotta javascript it, or catch it on the server. > > On 7/20/05, Mark Benussi <[EMAIL PROTECTED]> wrote: > > Sadly, JavaScript I am afraid. > > From: Vijay K Anand [mailto:[EMAIL PROTECTED] > > How to control char ma

RE: TextArea

2005-07-20 Thread Adrian_Rios
Here is the code to do it. I have used it a number of times. http://javascript.internet.com/forms/limit-textarea.html Adrian __ Senior Programmer Analyst, Tax Distributed Systems Development Tax & Compliance Development, ADP IT Phone: (909) 592

Re: TextArea

2005-07-20 Thread Larry Meadors
Yep, not an option in HTML, gotta javascript it, or catch it on the server. Larry On 7/20/05, Mark Benussi <[EMAIL PROTECTED]> wrote: > Sadly, JavaScript I am afraid. > > -Original Message- > From: Vijay K Anand [mailto:[EMAIL PROTECTED] > > How to control char maxlength in ? > -

RE: TextArea

2005-07-20 Thread Mark Benussi
Sadly, JavaScript I am afraid. -Original Message- From: Vijay K Anand [mailto:[EMAIL PROTECTED] Sent: 20 July 2005 15:39 To: Struts Users Mailing List Subject: TextArea Hi Guys How to control char maxlength in ? Regards Vijay

RE: TextArea

2005-07-20 Thread Brent Vaughn
You can use JavaScript to do it. That is how I have done it beforehand. -Original Message- From: Vijay K Anand [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 9:39 AM To: Struts Users Mailing List Subject: TextArea Hi Guys How to control char maxlength in ? Regards Vijay