![]() |
|
|
|
|
Change By:
|
Grégory Joseph
(16/Sep/13 3:04 PM)
|
|
Summary:
|
Proxy never get the configured property if the property is
i18nizer: Default values
set in
the
a
constructor
override a previously configured value
|
|
Priority:
|
Critical
Major
|
|
Description:
|
In
When
a
definition (for Example MultiValueFieldDefinition) the
proxied bean sets a
default
value of transformerClass was defined
for some field
in
the definition
its
constructor
.
In some case we need to define another transformerClass. This
, via a setter method (which
is
often
done
by defining a property
especially
in
subclasses that provide some default/specific behavior),
the
config tree of the MultiValueFieldDefinition
"manually" configured value gets overriden
.
The call flow goes like this:
Unfortunately this
{code} obj = new Obj()// sets foo to "default" obj.setFoo("my configured
value
is never taken into account
")
d = i18nizer
.
The
decorate(obj) //
proxy
keep
creation involves invoking
the
value defined in the
constructor
of d assertEquals("my configured value", d
.
getFoo() // fails, d.getFoo() returns "default" {code}
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------