Dear Tapestry Developers / Users, I have a question concerning partial HTML rendering without using zones using 5.4. Until alpha 24, the following code was working:
@Inject private Block page; @Inject private Block modal; public Object getActiveBlock() { return request.isXHR() ? modal : page; } The modal block consists of a <div> element. Using plain jQuery or http://pjax.heroku.com/ I was able to replace parts of the page with the HTML snippet rendered by T5. The good thing is, that the entire page is loaded in case of a normal request and the partial HTML is very easy to debug. The part of the code which prevents the rendering now is in DocumentLinkerImpl: // This only applies when the document is an HTML document. This may need to change in the // future, perhaps configurable, to allow for html and xhtml and perhaps others. Does SVG // use stylesheets? if (!rootElementName.equals("html")) { throw new RuntimeException(String.format("The root element of the rendered document was <%s>, not <html>. A root element of <html> is needed when linking JavaScript and stylesheet resources.", rootElementName)); } My question: is there a way to render partial HTML pages without using zones or decorate the DocumentLinker service? What about introducing a Symbol which allows partial HTML rendering? If you're interested I can submit a pull request. Thanks and best regards, Thilo --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org