You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jens Reufsteck <je...@staufenbiel.de> on 2011/12/19 15:26:46 UTC
url rewrite: Adding PageRenderLinkTransformer and ComponentEventLinkTransformer
Following Igors blog Ive added a PageRenderLinkTransformer to url
rewriting.
Now, Im trying to add also a ComponentEventLinkTransformer, but the method
@Contribute(PageRenderLinkTransformer.class)
@Primary
public static void provideURLRewriting(
OrderedConfiguration<PageRenderLinkTransformer> configuration,
SitemapService sitemapService) {
configuration.add("Sitemap", sitemapService);
}
is only for PageRenderLinkTransformer.
Adding a second method
@Contribute(ComponentEventLinkTransformer.class)
@Primary
public static void provideURLRewriting(
OrderedConfiguration<ComponentEventLinkTransformer>
configuration,
SitemapService sitemapService) {
configuration.add("Sitemap", sitemapService);
}
doesnt work either, since its essentially a duplicate method defintion.
Im probably missing something. Thanks in advance.
--
Jens Reufsteck