You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by carlos f <ca...@yahoo.com> on 2007/09/14 19:44:21 UTC

T4.1 - Override a configuration when no service is used

I would like to override the InjectPageWorker used by the tapestry framework.

However, the contribution for this worker uses the instance object provider:

<contribution configuration-id="InjectWorkers">
       . . .
       <worker type="page" object="instance:InjectPageWorker" />
</contribution>

When I attempt to "override" it by contributing another worker with a "page"
type I get the "Value for attribute 'type' ('page') duplicates a prior
instance" exception.

Does anyone know of another way to override this worker?

Carlos
-- 
View this message in context: http://www.nabble.com/T4.1---Override-a-configuration-when-no-service-is-used-tf4444252.html#a12680561
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T4.1 - Override a configuration when no service is used

Posted by Renat Zubairov <re...@gmail.com>.
Hi

You can extend the service which consumes given contribution, inside
your extension do wherever you need with the list of contributions.
Then overwrite the service which consumes contribution with you
extension.
I guess this should work.

Renat

On 14/09/2007, carlos f <ca...@yahoo.com> wrote:
>
> I would like to override the InjectPageWorker used by the tapestry framework.
>
> However, the contribution for this worker uses the instance object provider:
>
> <contribution configuration-id="InjectWorkers">
>        . . .
>        <worker type="page" object="instance:InjectPageWorker" />
> </contribution>
>
> When I attempt to "override" it by contributing another worker with a "page"
> type I get the "Value for attribute 'type' ('page') duplicates a prior
> instance" exception.
>
> Does anyone know of another way to override this worker?
>
> Carlos
> --
> View this message in context: http://www.nabble.com/T4.1---Override-a-configuration-when-no-service-is-used-tf4444252.html#a12680561
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,
Renat Zubairov

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org