On 3/26/06, Paul Benedict <[EMAIL PROTECTED]> 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:
>
> http://valuelist.sourceforge.net/tlddoc/index.html
>
> If you wanted to do something similar:
> <struts:textbox ...>
>  <struts:attribute name="autocomplete" value="autocomplete"/>
> </struts:textbox>
>
<snip/>

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].

-Rahul

[1] http://marc.theaimsgroup.com/?t=113243074300001&r=1&w=2


> 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
>
<snap/>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to