Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-810

Faces plugin copies the property-values to attribute-values incorrectly if there is a sibling property-metadata element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.3-plugins
    • 1.2.4-plugins
    • Plugins
    • None

    Description

      Faces plugin copies the property-values to attribute-values incorrectly if there is a sibling property-metadata element

      example XML source:

      <property>
      <description><![CDATA[test]]></description>
      <property-name>myProperty</property-name>
      <property-class>java.lang.String</property-class>
      <default-value>one</default-value>
      <property-extension>
      <mfp:required>false</mfp:required>
      <mfp:property-values>one two three four</mfp:property-values>
      <mfp:property-metadata>
      <mfp:preferred>true</mfp:preferred>
      </mfp:property-metadata>
      </property-extension>
      </property>

      Currently generates:

      <property>
      <description>test</description>
      <property-name>myProperty</property-name>
      <property-class>java.lang.String</property-class>
      <default-value>one</default-value>
      <property-extension>
      <attribute-values>one two three four</attribute-values>
      <property-metadata>
      <preferred>true</preferred>
      </property-metadata>
      </property-extension>
      </property>

      Desired result:

      <property>
      <description>test</description>
      <property-name>myProperty</property-name>
      <property-class>java.lang.String</property-class>
      <default-value>one</default-value>
      <property-extension>
      <property-metadata>
      <preferred>true</preferred>
      <attribute-values>one two three four</attribute-values>
      </property-metadata>
      </property-extension>
      </property>

      notice the new location of "<attribute-values>"

      Attachments

        Activity

          People

            arobinson74 Andrew Robinson
            arobinson74 Andrew Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: