struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35396] - [taglib] additional attributes for struts html tags
Date Sat, 18 Jun 2005 04:12:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35396>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35396





------- Additional Comments From fzammetti@omnytex.com  2005-06-18 06:12 -------
I believe a change that allows for arbitrary attributes is a Very Good Idea.

I have on many occassions generated tables of data where each row has a custom 
attribute like recordID that is used later to retrieve details for the 
selected record.  Custom attribute are a big help as Javascript hooks.

Also, take my AjaxTags as an example... if custom attribute were allowed then 
a DTD change would not be required because the ajaxRef attribute I add would 
be allowed by default.

I can absolutely understand the desire for the tags to generate valid HTML and 
I support that goal.  The question in my mind is whether custom attributes 
represent non-valid HTML or not.  One could argue that since an HTML validator 
would throw an error or warning then that means it is not valid HTML.  That's 
a reasonable argument :)

However, the simple fact is that custom attributes do not break modern 
browsers, and in fact have not for a number of years.  It is also, I believe, 
a fact that the utility of custom attributes cannot be denied.  I believe 
those two factoids outweigh the validity argument.  To say it isn't valid HTML 
might be technically accurate, but it is not "broken" HTML, and I think that 
makes a world of difference.

Also, consider that webapps these days are becoming far more complex and 
requiring more complex UI work.  Custom attributes can aid in this area.  I 
believe as people build more complex applications they will begin to become 
disenchanted with what they eventually will see as a limitation of the Struts 
tags in not allowing custom attributes.  This could ultimately sour them on 
Struts, and being a Struts supporter, I would hate to see that happen.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message