/** * Render the component using the receiver. If available, prepare the * pageContext for accessing variables by the components. * * @param component a Renderable instance | null * @return the receiver this <code>HtmlCanvas</code> instance. * @throws IOException in case of an I/O error. */ public HtmlCanvas render(Renderable component) throws IOException { // Allow undefined component as argument. This is a noop. if (component == null) return this; if (pageContext != null) { pageContext.beginRender(); component.renderOn(this); pageContext.endRender(); } else { component.renderOn(this); } return this; } /**