/** * @see org.esupportail.commons.web.component.UIAbstractPaginatorStyle#makeDivPages( * javax.faces.application.Application) */ @SuppressWarnings("unchecked") @Override protected Div makeDivPages(final Application a) { if (logger.isDebugEnabled()) { logger.debug("entering makeDivPagination(" + a + ")"); } Div divPages = (Div) a.createComponent(Div.COMPONENT_TYPE); divPages.setParent(this); divPages.setStyleClass(NAVIGATION_BLOCK); // if there are more than one page on display pagination if (getPaginator().getFirstPageNumber() != getPaginator().getLastPageNumber()) { HtmlTag ul1 = (HtmlTag) a.createComponent(HtmlTag.COMPONENT_TYPE); ul1.setValue(HTML.UL_ELEM); ul1.setParent(divPages); // PREVIOUS BUTTON if (getPaginator().getCurrentPage() != getPaginator().getFirstPageNumber()) { ul1.getChildren() .add( makeLiGroup( a, getStringsVar() + "['" + PREVIOUS_BUTTON_I18N_KEY + "']", null, true, PaginatorUtils.GOTO_PREVIOUS, null, null)); } // BODY of Paginator divPages = makePages(divPages, getPaginator(), ul1, a); } return divPages; }