Beispiel #1
0
  protected void processColumn(
      FacesContext fc,
      OutputTypeHandler outputHandler,
      UIComponent uiColumn,
      int colIndex,
      int countOfRowsDisplayed) {
    StringBuffer stringOutput = new StringBuffer();

    Iterator childrenOfThisColumn = uiColumn.getChildren().iterator();
    while (childrenOfThisColumn.hasNext()) {

      UIComponent nextChild = (UIComponent) childrenOfThisColumn.next();
      if (nextChild.isRendered() && !(nextChild instanceof RowSelector)) {
        stringOutput.append(encodeParentAndChildrenAsString(fc, nextChild));
        // a blank to separate
        if (childrenOfThisColumn.hasNext()) {
          stringOutput.append(' ');
        }
      }
    }
    outputHandler.writeCell(stringOutput.toString(), colIndex, countOfRowsDisplayed);
  }