You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nick Westgate <ni...@key-planning.co.jp> on 2007/09/19 18:44:59 UTC
Re: [T5] overriding PageResponseRenderer
Check out Alias and AliasOverrides:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html
Also search the users list for previous override discussions.
Cheers,
Nick.
Fernando Padilla wrote:
> I need to figure out how to override the default PageResponseRenderer. I
> just tried to bind my own PageResponseRenderer, but that seems to clash
> with the default one. What's the proper way of overriding the default
> Tapestry service bindings?
>
>
>
>
>
>
> I tried to do the following in my AppModule:
>
> public static void bind( ServiceBinder binder ) {
> binder.bind( PageResponseRenderer.class,
> JsonPageResponseRendererImpl.class );
> }
>
>
> But when I ran it I got this exception:
>
> 2007-09-19 09:17:05,113 [main] ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/fancity]
> - Exception starting filter app
> java.lang.RuntimeException: Service id 'PageResponseRenderer' has
> already been defined by
> org.apache.tapestry.internal.services.PageResponseRendererImpl(MarkupWriterFactory,
> PageMarkupRenderer, MetaDataLocator) (at
> PageResponseRendererImpl.java:41) and may not be redefined by
> com.protrade.fandom.site.components.json.JsonPageResponseRendererImpl(MarkupWriterFactory,
> PageMarkupRenderer, MetaDataLocator, Environment) (at
> JsonPageResponseRendererImpl.java:35). You should rename one of the
> service builder methods.
> at
> org.apache.tapestry.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:146)
> at
> org.apache.tapestry.ioc.RegistryBuilder.build(RegistryBuilder.java:132)
> .....
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org