[
https://issues.jboss.org/browse/JBSEAM-3138?page=com.atlassian.jira.plugi...
]
Marek Schmidt reopened JBSEAM-3138:
-----------------------------------
Reopening for the discussed reasons.
The following test fails:
{code}
<component name="component1"
class="org.jboss.seam.test.integration.Component2"
precedence="30">
<property name="name">Component1High</property>
</component>
<component name="component1"
class="org.jboss.seam.test.integration.Component1"
precedence="10">
<property name="name">Component1Low</property>
<property name="defaultValue">Component1override</property>
</component>
{code}
The component1 will have defaultValue = Component1override, even if that component
definition should not have been used and whatever Component2 class have as a default value
of the "defaultValue" property should be used instead.
If the Component2 doesn't even have the "defaultValue" property, it will
fail, as this will still attempt to set it.
precedence doesn't work for the component properties specified in
components.xml
--------------------------------------------------------------------------------
Key: JBSEAM-3138
URL:
https://issues.jboss.org/browse/JBSEAM-3138
Project: Seam 2
Issue Type: Bug
Components: Core
Affects Versions: 2.0.1.GA
Reporter: ihar kuplevich
Assignee: Marek Novotny
Fix For: 2.3.0.CR1
Attachments: Initialization.patch
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira