We have a requirement of tml file being delivered without <html> as the root
context. As I read the tapestry source, this validation is done in the
DocumentLinker.

In contributeMarkupRenderer method:
        MarkupRendererFilter documentLinker = new MarkupRendererFilter()
        {
            public void renderMarkup(MarkupWriter writer, MarkupRenderer
renderer)
            {
                DocumentLinkerImpl linker = new
DocumentLinkerImpl(productionMode, scriptsAtTop);

                environment.push(DocumentLinker.class, linker);

                renderer.renderMarkup(writer);

                environment.pop(DocumentLinker.class);

                linker.updateDocument(writer.getDocument());
            }
        };


Is there anyway I can override my own DocumentLinker with Tapestry's
DocumentLinker?

In the Post,  "http://n2.nabble.com/-T5--A-root-element-of-<html
-is-needed-when-linking-JavaScript-and-stylesheet-resources.-td1470668.html#a1470762">http://n2.nabble.com/-T5--A-root-element-of-<html>-is-needed-when-linking-JavaScript-and-stylesheet-resources.-td1470668.html#a1470762
   
Howard said we can override the internal DocumentLinker.  

Can anybody suggest me on how to do?





-- 
View this message in context: 
http://n2.nabble.com/How-to-override-Tapestry%27s-DocumentLinker---tp2239793p2239793.html
Sent from the Tapestry Users 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