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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to