[ 
http://www.stripesframework.org/jira/browse/STS-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter closed STS-117.
--------------------------


> 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

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to