@Override public void encodeBegin(final FacesContext arg0) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Entered encodeBegin for client-Id: " + getId()); } if (!StringUtils.hasText(getStyleClass())) { setStyleClass(TagsConfigurator.getInstance().getPaginatorStyleClass()); } Paginator< ? > pagi = getPaginator(); UIAbstractPaginatorStyle paginatorStyle = null; if (getChildren() != null && !getChildren().isEmpty()) { ////this paginator can have only one son. getChildren().remove(0); } paginatorStyle = new UIPaginatorStyle(); paginatorStyle.setParent(this); paginatorStyle.setAttributes(pagi, getPaginatorELExpression(), getItemsName(), getVisibleBlocks(), getStringsVar(), getOnchange()); getChildren().add(paginatorStyle); if (logger.isDebugEnabled()) { logger.debug("Exited encodeBegin"); } super.encodeBegin(arg0); }
@Override public void encodeBegin(final FacesContext arg0) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Entered encodeBegin for client-Id: " + getId()); } if (!StringUtils.hasText(getStyleClass())) { setStyleClass(TagsConfigurator.getInstance().getPaginatorStyleClass()); } Paginator< ? > pagi = getPaginator(); UIAbstractPaginatorStyle paginatorStyle = null; if (getChildren() != null && !getChildren().isEmpty()) { ////this paginator can have only one son. getChildren().remove(0); } paginatorStyle = new UIPaginatorStyle(); paginatorStyle.setParent(this); paginatorStyle.setAttributes(pagi, getPaginatorELExpression(), getItemsName(), getVisibleBlocks(), getStringsVar(), getOnchange()); getChildren().add(paginatorStyle); if (logger.isDebugEnabled()) { logger.debug("Exited encodeBegin"); } super.encodeBegin(arg0); }