| org.apache.tapestry.PageRenderSupport
All known Subclasses: org.apache.tapestry.internal.services.PageRenderSupportImpl,
PageRenderSupport | public interface PageRenderSupport (Code) | | Provides support to all components that render. This is primarily about generating unique
client-side ids (very important for JavaScript generation) as well as accumulating JavaScript to
be sent to the client.
|
addClasspathScriptLink | void addClasspathScriptLink(String... classpaths)(Code) | | Used to add scripts that are stored on the classpath. Each element has symbol expanded, then
is converted to an asset and added as a script link.
Parameters: classpaths - array of paths. Symbols in the paths are expanded, then the paths are eachconverted into an asset. |
addScript | void addScript(String format, Object... arguments)(Code) | | Adds a script statement to the page's script block (which appears at the end of the page,
just before the </body> tag).
Parameters: format - base string format, to be passed through String.format Parameters: arguments - additional arguments formatted to form the final script |
addScriptLink | void addScriptLink(Asset... scriptAssets)(Code) | | Adds one or more new script assets to the page. Assets are added uniquely, and appear as
<script> elements just inside the <body> element of the rendered page. Duplicate
requests to add the same script are quietly ignored.
Parameters: scriptAssets - asset to the script to add |
allocateClientId | String allocateClientId(String id)(Code) | | Allocates a unique id based on the component's id. In some cases, the return value will not
precisely match the input value (an underscore and a unique index value may be appended).
Parameters: id - the component id from which a unique id will be generated a unqiue id for this rendering of the page See Also: IdAllocator |
|
|