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

Passthrough element ignores passthrough attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • None
    • JSR-344
    • None

    Description

      In the following example, the passthrough element input has an attribute placeholder, that should be added to the corresponding JSF component as a passthrough attribute:

      <input type="text" jsf:id="name" jsf:value="#

      {bean.name}

      "
      placeholder="Enter name"/>

      With MyFaces 2.2.1 however, the placeholder attribute is not rendered.

      On further inspecting the component, I saw that placeholder is put in the attributes map and not in the passthrough attributes map of the component. That is probably the reason why it is not rendered.

      Attachments

        1. MYFACES-3868-webapp-example.zip
          42 kB
          Michael Kurz

        Activity

          People

            lu4242 Leonardo Uribe
            dr.gonzo Michael Kurz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: