[
http://www.stripesframework.org/jira/browse/STS-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790#comment-12790
]
Dan Nelson commented on STS-117:
--------------------------------
I think the tag documentation still indicates that the _disabled_ and
_readonly_ attributes are HTML passthrough, based on Tim's above comment that
documentation may need to be updated: e.g.
[http://stripes.sourceforge.net/docs/current/taglib/stripes/checkbox.html]
> tag library generates invalid HTML for "disabled" and "readonly" attributes
> ---------------------------------------------------------------------------
>
> Key: STS-117
> URL: http://www.stripesframework.org/jira/browse/STS-117
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.2.1
> Reporter: Glanville, Jay Dickon
> Assignee: Tim Fennell
> Fix For: Release 1.3
>
>
> The following taglib usage:
> <stripes:text name="bean.attribute" disabled="false" />
> generates the following HTML code:
> <input type="text"
> name="bean.attribute"
> disabled="false"
> .... />
> The above is invalid HTML in that if you want a field enabled, you can't have
> the attribute "disabled" anywhere in the <input> tag.
> The correct HTML output for the above example would be:
> <input type="text"
> name="bean.attribute"
> .... />
> A second issue is that when the tag should generate the HTML attribute, it
> shouldn't look like this:
> ... disabled="true" ...
> as this is not XHTML compliant. Instead, it should look like this:
> ... disabled="disabled" ...
> Summary: if the runtime attribute of the 'disabled' attribute of the
> <struts:text> tag evaluates to true, then the resulting HTML code must
> contain:
> ... disabled="disabled" ...
> if the attribute evaluates to false, then no output should be generated.
> The above rule also applies to the "readonly" attribute.
> This bug affects all form tags, including:
> - button
> - checkbox
> - file
> - option
> - password
> - radio
> - reset
> - select
> - submit
> - text
> - textarea
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development