RE: Textarea and Wrap

2001-02-06 Thread Ted Husted

The HTML 4.01 specification says that in textareas "user agents may
wrap visible text lines to keep long lines visible without the need for
scrolling."

Unfortunately, many user agents, including Netscape 4.7, won't actually
do this with an additional "wrap" property.

This is on the TODO list for 1.1. When implemented, this would
certainly be an optional property, and if the developer did not specify
"wrap=soft" or "wrap=hard", then a wrap propertly would not be
included.

I agree that it is unfortunate that we have to accomodate the
vagriances of browser implementations, but it is my understanding that
Struts is suppose to be a framework for deploying real-world
applications.

In practice, I would not be able to ship a Web application that used a
text area without wrapping through Netscape 4.x, since there would too
many user requests to add the feature. (I forgot the wrap property on a
comment form once, and, as usual, learned the hard way.)

How would Opera be adversly affected by Struts providing an optional
wrap property?

*** REPLY SEPARATOR  ***

On 2/6/2001 at 9:26 AM Michael Gerdau wrote:

[wrap for textarea]

 I realize 
 that "wrap" 
 isn't part of the official spec, but it is supported by both 
 IE and Netscape. 

What about us Opera users ?

Why do you want to violate the spec anyway ?

 I was wondering if there was some alternative, or if my 
 changes might make 
 their way into CVS.

I strongly object against this. There are already enough
incompatibilities to be aware of.

My DM 0.02, best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau   email: [EMAIL PROTECTED]
 Function call to load Windows: here_piggy_piggy_piggy_piggy
 PGP-keys available on request or at public keyserver



-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/





RE: Textarea and Wrap

2001-02-06 Thread Ted Husted

Did you want to signup for this? 

It's on the TODO list for 1.1 but no one's volunteered yet.

*** REPLY SEPARATOR  ***

On 2/5/2001 at 11:18 AM Colin Sampaleanu wrote:

+1

I actually suggested this 3 or 4 months ago. Not having support for
wrap is
a big pain in the butt...


 -Original Message-
 From: Steve Vaughan [mailto:[EMAIL PROTECTED]]
 Sent: January 30, 2001 9:55 AM
 To: [EMAIL PROTECTED]
 Subject: Textarea and Wrap
 
 
 Is there any plan to support wrap in textarea fields.  I have 
 already coded 
 changes to "src/share/org/apache/struts/taglib/TextareaTag.java" and

 "src/doc/struts-form.xml" to add a wrap attribute.  I realize 
 that "wrap" 
 isn't part of the official spec, but it is supported by both 
 IE and Netscape. 
  I can't even imagine using a textarea without some form of 
 wrapping enabled.
 
 I was wondering if there was some alternative, or if my 
 changes might make 
 their way into CVS.
 
 - Steve
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com




-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/





RE: Textarea and Wrap

2001-02-06 Thread Elod_Horvath


+1




Ted Husted [EMAIL PROTECTED] on 02/06/2001 07:32:35 AM

Please respond to [EMAIL PROTECTED]

To:   Struts Dev [EMAIL PROTECTED]
cc:(bcc: Elod Horvath)
Subject:  RE: Textarea and Wrap


Received: from wdpsec01.bankofny.com ([10.101.8.180]) by lnotes3.bankofny.com
(Lotus SMTP MTA v4.6.7  (934.1 12-30-1999)) with SMTP id 852569EB.00451DA8; Tue,
6 Feb 2001 07:34:55 -0500
Received: from email.bankofny.com (unverified) by wdpsec01.bankofny.com
 (Content Technologies SMTPRS 2.0.15) with ESMTP id
[EMAIL PROTECTED] for [EMAIL PROTECTED];
 Tue, 06 Feb 2001 07:34:20 -0500
Received: from CONVERSION-DAEMON by EMAIL.BANKOFNY.COM (PMDF V5.2-31 #42228)
 id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]
 (ORCPT rfc822;[EMAIL PROTECTED]); Tue, 6 Feb 2001 07:33:29 EST
Received: from eagle.ssg.bny.com ([192.168.99.23])
 by EMAIL.BANKOFNY.COM (PMDF V5.2-31 #42228)
 with SMTP id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]
 (ORCPT rfc822;[EMAIL PROTECTED]); Tue,
 06 Feb 2001 07:33:16 -0500 (EST)
Received: from h31.sny.collab.net ([64.208.42.41])
 by eagle.ssg.bny.com via smtpd (for email.ssg.bny.com [160.100.151.79])
 with SMTP; Tue, 06 Feb 2001 12:33:57 + (UT)
Received: (qmail 58455 invoked by uid 500); Tue, 06 Feb 2001 12:32:42 +
Received: (qmail 58086 invoked from network); Tue, 06 Feb 2001 12:32:39 +
Received: from mailout4-0.nyroc.rr.com (24.92.226.120)
 by h31.sny.collab.net with SMTP; Tue, 06 Feb 2001 12:32:39 +
Received: from pc10 (roc-24-93-14-35.rochester.rr.com [24.93.14.35])
 by mailout4-0.nyroc.rr.com (8.11.2/RoadRunner 1.03) with ESMTP id f16CTEb13147
 for [EMAIL PROTECTED]; Tue, 06 Feb 2001 07:29:14 -0500 (EST)
Date: Tue, 06 Feb 2001 07:32:35 -0500
From: Ted Husted [EMAIL PROTECTED]
Subject: RE: Textarea and Wrap
In-Reply-To: [EMAIL PROTECTED]
To: Struts Dev [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Message-Id: [EMAIL PROTECTED]
X-Mailer: Calypso Version 3.10.03.02 (1)
Precedence: bulk
Delivered-to: mailing list [EMAIL PROTECTED]
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
References: [EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
Content-Type: text/plain; charset="ISO-8859-1"


Here's a related idea:

Should all the Struts HTML tags have an option for adding custom
properties as-is? For example

custom="wrap=soft googleplex=centurion optimize"

Duty now for the future ...


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/











RE: Textarea and Wrap

2001-02-06 Thread Colin Sampaleanu

+1

Is it also worth thinking in general about a mechanism to allow custom tag
properties conditionally. It is fairly easy to detect the user agent
(browser), and based on that information different properties could be
written out. If we can figure out a clean syntax, it's a lot cleaner than
doing big JSP 'if' blocks to account for browser differences (which are
sometimes unfortunately a fact of life).



 -Original Message-
 From: Ted Husted [mailto:[EMAIL PROTECTED]]
 Sent: February 6, 2001 7:33 AM
 To: Struts Dev
 Subject: RE: Textarea and Wrap
 
 
 Here's a related idea:
 
 Should all the Struts HTML tags have an option for adding custom
 properties as-is? For example
 
 custom="wrap=soft googleplex=centurion optimize"
 
 Duty now for the future ...
 
 
 -- Ted Husted, Husted dot Com, Fairport NY USA.
 -- Custom Software ~ Technical Services.
 -- Tel 716 425-0252; Fax 716 223-2506.
 -- http://www.husted.com/about/struts/
 
 



RE: Textarea and Wrap

2001-02-05 Thread Colin Sampaleanu

+1

I actually suggested this 3 or 4 months ago. Not having support for wrap is
a big pain in the butt...


 -Original Message-
 From: Steve Vaughan [mailto:[EMAIL PROTECTED]]
 Sent: January 30, 2001 9:55 AM
 To: [EMAIL PROTECTED]
 Subject: Textarea and Wrap
 
 
 Is there any plan to support wrap in textarea fields.  I have 
 already coded 
 changes to "src/share/org/apache/struts/taglib/TextareaTag.java" and 
 "src/doc/struts-form.xml" to add a wrap attribute.  I realize 
 that "wrap" 
 isn't part of the official spec, but it is supported by both 
 IE and Netscape. 
  I can't even imagine using a textarea without some form of 
 wrapping enabled.
 
 I was wondering if there was some alternative, or if my 
 changes might make 
 their way into CVS.
 
 - Steve
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com