Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-8159

precedence doesn't work for the component properties specified in components.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.2
    • Seam2
    • None
    • Release Notes
    • Hide
      Seam component precedence defined in the <filename>components.xml</filename> file was not taken into account when initializing component properties. If a property of the same component was defined more than once in the file, the last occurrence in the file was used, not the one defined in the <systemitem>&lt;component&gt;</systemitem> element with the highest value of the <systemitem>precedence</systemitem> attribute. This behaviour is now fixed and the property value defined in the <systemitem>&lt;component&gt;</systemitem> element with the highest precedence is used during component initialization.
      Show
      Seam component precedence defined in the <filename>components.xml</filename> file was not taken into account when initializing component properties. If a property of the same component was defined more than once in the file, the last occurrence in the file was used, not the one defined in the <systemitem>&lt;component&gt;</systemitem> element with the highest value of the <systemitem>precedence</systemitem> attribute. This behaviour is now fixed and the property value defined in the <systemitem>&lt;component&gt;</systemitem> element with the highest precedence is used during component initialization.
    • Documented as Resolved Issue
    • NEW

    Description

      Precedence doesn't work for the component's properties specified in components.xml. Component's attributes like class for example are taken according precedence but properties are taken from last loaded components.xml.

      ex)
      I put 2 component tag in components.xml. Despite value of precedence, name property was always set to last value (Component1Low).
      (The class of component1 followed the precedence (sample.Component2).)

      <component name="component1"
      class="sample.Component2"
      precedence="30">
      <property name="name">Component1High</property>
      </component>
      <component name="component1"
      class="sample.Component1"
      precedence="10">
      <property name="name">Component1Low</property>
      </component>

      Attachments

        Activity

          People

            mnovotny@redhat.com Marek Novotny
            rhn-support-tkonishi Takayuki Konishi
            Petr Penicka Petr Penicka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: