// Close the nested writer, which dumps its buffered content // into its parent.
nested.close();
// Any initialization should go at the very end of the document // just before the close body tag. Older version of Tapestry // would create a window.onload event handler, but this is better // (it doesn't have to wait for external images to load). // add init script code XtradeBasePage page = (XtradeBasePage) this.getPage(); if (page.getDefaultSubmit() != null) _pageRenderSupport.addInitializationScript( Script.getDefaultSubmitScript(page.getDefaultSubmit()));