As I said before, it seems like the zbreadcrumbs MarkupRendererFilter is
running before the DocumentLinker even though it should run after.

I'd like you to test a theory that there is a bug in ordered configuration.
I originally asked you to alter the zbreadcrumbs jar but I have found a way
to test my theory without altering the zbreadcrumbs code.

Can you add the following to your AppModule and try running against the
normal zbreadcrumbs jar?

public void
contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter>
configuration, final Environment environment,
@Path("${zbreadcrumbs-default-stylesheet}") final Asset defaultStylesheet) {
   MarkupRendererFilter injectDefaultStylesheet = new MarkupRendererFilter()
   {
      public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer)
{
         DocumentLinker linker =
environment.peekRequired(DocumentLinker.class);

         linker.addStylesheetLink(new
StylesheetLink(defaultStylesheet.toClientURL()));

         renderer.renderMarkup(writer);
      }
   };

   configuration.override(
      "ZBreadCrumbsDefaultStylesheet", 
      injectDefaultStylesheet, 
      "after:InjectDefaultStylesheet",
      "after:DocumentLinker"
   );
}

Inspired by:
https://bitbucket.org/zenios/tapestry-zbreadcrumbs/src/a82acf094238/src/main/java/org/oscy/tapestry/breadcrumbs/services/BreadCrumbsModule.java

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713870.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to