As I know it is not fixed yet:
http://issues.apache.org/jira/browse/TAPESTRY-725
Regards,
Norbi
----- Original Message -----
From: "Davor Hrg" <[EMAIL PROTECTED]>
To: "Tapestry development" <[email protected]>
Sent: Monday, January 23, 2006 4:22 PM
Subject: Re: configuration q.
sory for crossposting to dev and user list
does anyone know the status of this bug ?
I just spent half of a day breaking my head why the configuration is not
injected
as Map....
My example is not with anotations, but within page specification,
but still I belive it's the same bug.
On 10/24/05, Norbert Sándor <[EMAIL PROTECTED]> wrote:
I debugged it, Hivemind handles it correctly but InjectObjectWorker does
not.
BR,
Norbi
----- Original Message -----
From: "Norbert Sándor" <[EMAIL PROTECTED]>
To: "tapestry-user" <[email protected]>
Sent: Monday, October 24, 2005 9:28 AM
Subject: configuration q.
Hello,
Probably I'm too tired but I don't see the cause... :(
I have this configuration point:
<configuration-point id="ObjectVisualizers">
<schema>
<element name="visualizer" key-attribute="type">
<attribute name="type" required="true" translator="class"/>
<attribute name="implementation" required="true" translator="object" />
<rules>
<push-attribute attribute="implementation"/>
<invoke-parent method="addElement"/>
</rules>
</element>
</schema>
</configuration-point>
When I try to inject it in Tapestry using
@InjectObject(value="configuration:mymodule.ObjectVisualizers")
public abstract Map getObjectVisualizers();
I get the following error:
org.apache.tapestry.BindingException
An error occured processing annotation
@org.apache.tapestry.annotations.InjectObject(value=configuration:
mymodule.ObjectVisualizers)
of public abstract java.util.Map mypackage.Component.getObjectVisualizers
():
The value obtained using locator 'configuration:mymodule.ObjectVisualizers
'
([...]) is not compatible with the existing property (of type
java.util.Map).
Which means that the configuration cannot be injected as a Map because it
is
a List.
Why is it a List when I specified key-attribute="type"?
Thanks in advance!
BR,
Norbi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.21/236 - Release Date: 2006. 01.
20.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]