public interface IComponentAwareHeaderContributor extends IClusterable
Behaviors,
IAjaxCallListeners.
Example:
class MyAjaxCallDecorator implements IAjaxCallListener, IComponentAwareHeaderContributor
{
// IAjaxCallListener methods omitted for brevity
public void renderHead(Component component, IHeaderResponse response)
{
response.render(new OnLoadJavaScriptHeaderItem("alert('page loaded!');"));
}
}
| Modifier and Type | Method and Description |
|---|---|
void |
renderHead(Component component,
IHeaderResponse response)
Render to the web response whatever the component-aware wants to contribute to the head
section.
|
void renderHead(Component component, IHeaderResponse response)
component - component which is contributing to the response. This parameter is here to give
the component as the context for component-awares implementing this interfaceresponse - Response objectCopyright © 2006–2021 Apache Software Foundation. All rights reserved.