@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); }
/** * @return the paginator */ public Paginator< ? > getPaginator() { ValueBinding vb = getValueBinding(PAGINATOR_ATTR); if (vb != null) { try { return (Paginator< ? >) vb.getValue(getFacesContext()); } catch (ClassCastException e) { throw new TagException("The attribute paginator must be a Paginator class.", e); } } return paginator; }
@Override public void encodeChildren(final FacesContext context) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Entered encodeChildren for class: " + this.getClass() ); } for (Object o : getChildren()) { UIComponentBase c = (UIComponentBase) o; c.encodeBegin(context); c.encodeChildren(context); c.encodeEnd(context); } if (logger.isDebugEnabled()) { logger.debug("Exited encodeChildren for class: " + this.getClass()); } }
@Override public void encodeChildren(final FacesContext context) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Entered encodeChildren for class: " + this.getClass() ); } for (Object o : getChildren()) { UIComponentBase c = (UIComponentBase) o; c.encodeBegin(context); c.encodeChildren(context); c.encodeEnd(context); } if (logger.isDebugEnabled()) { logger.debug("Exited encodeChildren for class: " + this.getClass()); } }
@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); }
/** * @return the paginator */ public Paginator< ? > getPaginator() { ValueBinding vb = getValueBinding(PAGINATOR_ATTR); if (vb != null) { try { return (Paginator< ? >) vb.getValue(getFacesContext()); } catch (ClassCastException e) { throw new TagException("The attribute paginator must be a Paginator class.", e); } } return paginator; }