* @param page Una instancia de {@link PageContext} que representa la p�gina a renderizar.
*/
private void renderBanners(Workspace workspace, StringBuilder xhtml, PageContext page) throws TemplateUnavailableException
{
int index;
BannerAreaWidget baw;
index = xhtml.indexOf(PageRenderer.TAG_WIDGET_BANNERS_LEFT);
if (index >= 0)
{
baw = new BannerAreaWidget(workspace, BannerAreaWidget.BannerAreas.Left);
xhtml.replace(index, index + PageRenderer.TAG_WIDGET_BANNERS_LEFT.length(), baw.render());
}
index = xhtml.indexOf(PageRenderer.TAG_WIDGET_BANNERS_RIGHT);
if (index >= 0)
{
baw = new BannerAreaWidget(workspace, BannerAreaWidget.BannerAreas.Left);
xhtml.replace(index, index + PageRenderer.TAG_WIDGET_BANNERS_RIGHT.length(), baw.render());
}
index = xhtml.indexOf(PageRenderer.TAG_WIDGET_BANNERS_CENTER_TOP);
if (index >= 0)
{
baw = new BannerAreaWidget(workspace, BannerAreaWidget.BannerAreas.Left);
xhtml.replace(index, index + PageRenderer.TAG_WIDGET_BANNERS_CENTER_TOP.length(), baw.render());
}
index = xhtml.indexOf(PageRenderer.TAG_WIDGET_BANNERS_CENTER_BOTTOM);
if (index >= 0)
{
baw = new BannerAreaWidget(workspace, BannerAreaWidget.BannerAreas.Left);
xhtml.replace(index, index + PageRenderer.TAG_WIDGET_BANNERS_CENTER_BOTTOM.length(), baw.render());
}
}