struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar" <>
Subject Re: html taglib autocomplete
Date Mon, 27 Mar 2006 07:54:36 GMT
On 3/26/06, Paul Benedict <> wrote:
> I am late on this conversation, but I want to offer a suggestion.
> Some tag libraries which render HTML elements allow you to
> pass-through other attributes. In JSP 2.1 (maybe 2.0 too), there is
> an implicit attributes object for any attributes which were not
> explicitly defined. In the ValueList tag library, they include
> an <attribute> parameter which allows people to define any other
> parameters they would like to pass in:
> If you wanted to do something similar:
> <struts:textbox ...>
>  <struts:attribute name="autocomplete" value="autocomplete"/>
> </struts:textbox>

How about dynamic attributes for Struts HTML tags, so attributes that
we have no semantics defined for just slide on down into the HTML?
Similar to the above, no need to add a new attribute each time (but no
child tags -- too verbose, don't really like the
findAncestorWithClass() business either).

And how about a complete rewrite, and JSP 2.0 ready tags that allow
composition? A html2 of sorts, maybe a different prefix to avoid
confusion with what Hubert has.

I'm keen on the composition bit and thereby the rewrite, but not
enough cycles to do it alone ;-(

Background [1].



> I agree that only HTML attributes should be supported, but we should
> also allow people to pass in other attributes in a way that we don't
> have to support. I vote for this kind of approach.
> Paul

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

View raw message