public class ComponentRenderer extends Object
Constructor and Description |
---|
ComponentRenderer() |
Modifier and Type | Method and Description |
---|---|
static CharSequence |
renderComponent(Component component)
Collects the html generated by the rendering of a component.
|
static CharSequence |
renderPage(PageProvider pageProvider)
Collects the html generated by the rendering of a page.
|
public static CharSequence renderPage(PageProvider pageProvider)
pageProvider
- the provider of the page class/instance and its parameterspublic static CharSequence renderComponent(Component component)
NOTE: this method is meant to render fresh component instances that are disposed after the html has been generate. To avoid unwanted side effects do not use it with components that are from an existing hierarchy.
component
- the component to render.Copyright © 2006–2016 Apache Software Foundation. All rights reserved.