public boolean hasFooterColumn() { for (UIComponent child : getChildren()) { if (child instanceof Column && child.isRendered()) { Column column = (Column) child; if (column.getFacet("footer") != null || column.getFooterText() != null) { return true; } } } return false; }
ValueExpression filterVE = column.getValueExpression(Column.PropertyKeys.filterBy.toString()); if (filterVE != null) { UIComponent filterFacet = column.getFacet("filter"); Object filterValue = (filterFacet == null) ? params.get(column.getClientId(context) + separator + "filter")
protected void encodeFacetColumn(FacesContext context, SubTable table, Column column, String facetName, String styleClass, String text) throws IOException { if (!column.isRendered()) { return; } ResponseWriter writer = context.getResponseWriter(); String style = column.getStyle(); String columnClass = column.getStyleClass(); columnClass = (columnClass == null) ? styleClass : styleClass + " " + columnClass; writer.startElement("td", null); writer.writeAttribute("class", columnClass, null); if (column.getRowspan() != 1) { writer.writeAttribute("rowspan", column.getRowspan(), null); } if (column.getColspan() != 1) { writer.writeAttribute("colspan", column.getColspan(), null); } if (style != null) { writer.writeAttribute("style", style, null); } // Footer content UIComponent facet = column.getFacet(facetName); if (facet != null) { facet.encodeAll(context); } else if (text != null) { writer.write(text); } writer.endElement("td"); }
public boolean hasFooterColumn() { for(UIComponent child : getChildren()) { if(child instanceof Column && child.isRendered()) { Column column = (Column) child; if(column.getFacet("footer") != null || column.getFooterText() != null) return true; } } return false; }
ValueExpression filterVE = column.getValueExpression(Column.PropertyKeys.filterBy.toString()); if (filterVE != null) { UIComponent filterFacet = column.getFacet("filter"); Object filterValue = (filterFacet == null) ? params.get(column.getClientId(context) + separator + "filter")
protected void encodeFacetColumn(FacesContext context, SubTable table, Column column, String facetName, String styleClass, String text) throws IOException { if (!column.isRendered()) { return; } ResponseWriter writer = context.getResponseWriter(); String style = column.getStyle(); String columnClass = column.getStyleClass(); columnClass = (columnClass == null) ? styleClass : styleClass + " " + columnClass; writer.startElement("td", null); writer.writeAttribute("class", columnClass, null); if (column.getRowspan() != 1) writer.writeAttribute("rowspan", column.getRowspan(), null); if (column.getColspan() != 1) writer.writeAttribute("colspan", column.getColspan(), null); if (style != null) writer.writeAttribute("style", style, null); // Footer content UIComponent facet = column.getFacet(facetName); if (facet != null) { facet.encodeAll(context); } else if (text != null) { writer.write(text); } writer.endElement("td"); }