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
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
-
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
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:
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
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
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
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)
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-
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
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
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
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 ?
>
-
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
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
15 matches
Mail list logo