This probably won't be the last request for an attribute which turns out to
be browser specific.  Perhaps the html taglib can include some mechanism to
allow developers to add other attributes.  There *are* times when it makes
sense to use browser-specific extensions.  Some applications, for instance,
are targetted to specific browsers (like intranet apps).  Some apps require
functionality which would dictate the use of such features.  By requiring tag
subclasses, Struts doesn't make it easy to take advantage of browser-specific
features.

While the html taglib shouldn't include every attribute of every tag of every
browser on the face of the planet, perhaps some generic way of adding
attributes might be acceptable.  something like

<html:sometag custom="browserspecific1=value1 browserspecific2=\"value 2\""/>


...or args="" / attrs="" / whatever that the html:tag can render as-is.


Another option would be:

<html:sometag ...>
    <html:attr name="browserspecific1" value="value1"/>
    <html:attr name="browserspecific2" value="value 2"/>
</html:sometag>

...though the code to implement this might require some considerable
refactoring of the existing tag classes.


- Hubert


--- [EMAIL PROTECTED] wrote:
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26795>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
> INSERTED IN THE BUG DATABASE.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26795
> 
> adding href to html:button tag
> 
> [EMAIL PROTECTED] changed:
> 
>            What    |Removed                     |Added
>
----------------------------------------------------------------------------
>              Status|NEW                         |RESOLVED
>          Resolution|                            |INVALID
> 
> 
> 
> ------- Additional Comments From [EMAIL PROTECTED]  2004-02-09 16:41 -------
> By design, Struts tags only emit valid HTML 4.01.  According to the spec,
> 'href' is not a valid attribute of 
> BUTTON.
> 
> http://www.w3.org/TR/REC-html40/interact/forms.html#edef-BUTTON
> 
> Nothing stopping you from subclassing the tag and adding another property
> though!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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

Reply via email to