I will try it in the evening! thx! hope, that it will work then.

alex



2012/6/14 Lance Java [via Tapestry] <
ml-node+s1045711n5713870...@n5.nabble.com>

> 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
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713870.html
>  To unsubscribe from BreadCrumbsModule error, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5713794&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxMzc5NHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


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

Reply via email to