writer.writeClassAttribute("tobago-sheet-footer");
writer.writeAttribute(HtmlAttributes.STYLE, footerStyle, null);
if (isValidPagingValue(showRowRange)) {
UICommand pagerCommand = (UICommand) data.getFacet(
FACET_PAGER_ROW);
if (pagerCommand == null) {
pagerCommand = createPagingCommand(
application, PageAction.TO_ROW, false);
data.getFacets().put(FACET_PAGER_ROW, pagerCommand);
}
String pagingOnClick
= HtmlRendererUtil.createOnClick(facesContext, pagerCommand);
pagingOnClick = pagingOnClick.replaceAll("'", "\"");
final String pagerCommandId = pagerCommand.getClientId(facesContext);
final String className = "tobago-sheet-paging-rows-span"
+ " tobago-sheet-paging-span-" + showRowRange;
writer.startElement(HtmlConstants.SPAN, null);
writer.writeAttribute(HtmlAttributes.ONCLICK, "tobagoSheetEditPagingRow(this, '"
+ pagerCommandId + "', '" + pagingOnClick + "')", null);
writer.writeClassAttribute(className);
writer.writeAttribute(HtmlAttributes.TITLE, ResourceManagerUtil.getPropertyNotNull(
facesContext, "tobago", "sheetPagingInfoRowPagingTip"), null);
writer.write(createSheetPagingInfo(data, facesContext,
pagerCommandId, true));
writer.endElement(HtmlConstants.SPAN);
}
if (isValidPagingValue(showDirectLinks)) {
final String className = "tobago-sheet-paging-links-span"
+ " tobago-sheet-paging-span-" + showDirectLinks;
writer.startElement(HtmlConstants.SPAN, null);
writer.writeClassAttribute(className);
writer.writeIdAttribute(sheetId + SUBCOMPONENT_SEP + "pagingLinks");
writeDirectPagingLinks(writer, facesContext, application, data);
writer.endElement(HtmlConstants.SPAN);
}
if (isValidPagingValue(showPageRange)) {
UICommand pagerCommand
= (UICommand) data.getFacet(FACET_PAGER_PAGE);
if (pagerCommand == null) {
pagerCommand = createPagingCommand(
application, PageAction.TO_PAGE, false);
data.getFacets().put(FACET_PAGER_PAGE, pagerCommand);
}
String pagingOnClick
= HtmlRendererUtil.createOnClick(facesContext, pagerCommand);
pagingOnClick = pagingOnClick.replaceAll("'", "\"");
final String pagerCommandId = pagerCommand.getClientId(facesContext);
final String className = "tobago-sheet-paging-pages-span"
+ " tobago-sheet-paging-span-" + showPageRange;