[
http://jira.jboss.com/jira/browse/JBSEAM-3138?page=comments#action_12419327 ]
ihar kuplevich commented on JBSEAM-3138:
----------------------------------------
Imagine you have project that consists of different modules. In one of those modules you
have following class
public class Component1 {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Under resources of that module you have components.xml containing:
<component name="component1"
class="com.exigen.ews.framework.test.components.Component1"
precedence="10">
<property name="name">Component1Low</property>
</component>
So you are telling seam that you class Components1.java is actually a seam component with
precedence 10 and you defined a property for attribute name.
In some other module you have another components.xml contatining:
<component name="component1"
class="com.exigen.ews.framework.test.components.Component1"
precedence="50">
<property name="name">Component1High</property>
</component>
After that you want to know the value of property on one of your pages #{component1.name}.
It should be taken according priority but it takes a property from last loaded
components.xml.
precedence doesn't work for the component properties specified in
components.xml
--------------------------------------------------------------------------------
Key: JBSEAM-3138
URL:
http://jira.jboss.com/jira/browse/JBSEAM-3138
Project: Seam
Issue Type: Patch
Components: Core
Affects Versions: 2.0.1.GA
Reporter: ihar kuplevich
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 contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira