jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl von Randow" <k...@cactuslab.com>
Subject RE: input tag library enhancement?
Date Wed, 25 Sep 2002 06:41:00 GMT
Hi Jason,

Right you are - I was wondering how whitespace would be treated, as it
is sigificant in a textarea. That can probably be left as a usage issue
for the user, to ensure that they manage the whitespace where necessary.
At least I think that might be an issue!

In terms of implementation - I think this means that the textarea tag
would need to buffer its body, so that the attribute tags can add
attributes to the tag, and then the tag closed, the body written and the
end tag added. It could possibly remove "trim" the body at this point
too... Is this what you had in mind?

Cheers,
k@rl

-----Original Message-----
From: Jason Gurney [mailto:jason@jasongurney.com] 
Sent: Wednesday, 25 September 2002 5:53 p.m.
To: Tag Libraries Developers List
Subject: Re: input tag library enhancement?


The HTML <textarea> tag expects a body of text, but that shouldn't
preclude the <input:textarea> tag from including nested elements, right?

-JG

----- Original Message -----
From: "Karl von Randow" <karl@cactuslab.com>
To: "'Tag Libraries Developers List'" <taglibs-dev@jakarta.apache.org>
Sent: Monday, September 23, 2002 11:17 PM
Subject: RE: input tag library enhancement?


> Hi Jason,
>
> This is an interesting idea... I am at the moment attempting to add a 
> collection of improvements to the input taglibs. One of which solves 
> the same problem you are solving, but in a different way:
>
> An attributesText parameter, eg. <input:text name="fieldName" 
> attributesText='size="50" class="small"'/>, is used to add the 
> attributes. This has the side-effect of speeding conversion from 
> static HTML.
>
> I'm not quite sure where we're at on getting this into the main distro

> though.
>
> The method you propose seems clearer and more JSP like to me. However,

> how would it work with a tag like the textarea tag which expects a 
> body of text as well... Might get white space problems?
>
> Kind regards,
> Karl
>
> -----Original Message-----
> From: Jason Gurney [mailto:jason@jasongurney.com]
> Sent: Tuesday, 24 September 2002 5:35 p.m.
> To: taglibs-dev@jakarta.apache.org
> Subject: input tag library enhancement?
>
>
> I have an enhancement idea for the input tag library that might 
> simplify things somewhat for client developers.  It would involve 
> adding nested tags to handle HTML attributes as an alternative to the 
> attributeMap. The syntax for text input tags could look something like

> this:
>
> <input:text name="fieldName">
>     <input:attribute name="size" value="50"/>
>     <input:attribute name="class" value="small"/>
> </input>
>
> (A similar approach could be used for <input:select> option values.)
>
> Any thoughts on this enhancement?  If approved, I'd be happy to 
> implement the necessary changes.
>
> Thanks,
> -JG
>
>
> --
> To unsubscribe, e-mail: 
> <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:taglibs-dev-help@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:taglibs-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:taglibs-dev-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message