Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4391

Disabled/ReadOnly HTML attributes should not use boolean

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-RC1, 3.0.1, 2.3.9, 2.3-next-M6
    • None
    • None

    Description

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

      Current:

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

       

      Should be:

       if (inputFile.isDisabled()) 
      { 
         writer.writeAttribute(HTML.DISABLED_ATTR, HTML.DISABLED_ATTR, null); 
      } 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            melloware Melloware
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: