You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Melloware (Jira)" <de...@myfaces.apache.org> on 2021/03/31 12:46:00 UTC

[jira] [Created] (MYFACES-4391) Disabled and ReadOnly HTML attributes should not use boolean

Melloware created MYFACES-4391:
----------------------------------

             Summary: Disabled and ReadOnly HTML attributes should not use boolean
                 Key: MYFACES-4391
                 URL: https://issues.apache.org/jira/browse/MYFACES-4391
             Project: MyFaces Core
          Issue Type: Improvement
            Reporter: Melloware


For `readonly` and `disabled` attributes MyFaces is sending "true" when the right value is `readonly="readoly"`

Current:
{code:java}
if (inputFile.isDisabled())
{
     writer.writeAttribute(HTML.DISABLED_ATTR, Boolean.TRUE, null);
} {code}
 

Should be:
{code:java}
 if (inputFile.isDisabled()) 
{ 
   writer.writeAttribute(HTML.DISABLED_ATTR, HTML.DISABLED_ATTR, null); 
} {code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)