public interface IHeaderContributor extends IClusterable
Component already
implements it.
class MyPanel extends Panel
{
public MyPanel(String id)
{
super(id);
}
public void renderHead(IHeaderResponse response)
{
response.render(JavaScriptHeaderItem.forScript("alert('page loaded!');"));
}
}
IHeaderResponse,
HeaderItem,
Application.getHeaderContributorListeners()| Modifier and Type | Method and Description |
|---|---|
void |
renderHead(IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section.
|
void renderHead(IHeaderResponse response)
response - Response objectCopyright © 2006–2021 Apache Software Foundation. All rights reserved.