Пример #1
0
  @Override
  public void walk(FacesContext facesContext, DataVisitor dataVisitor, Range range, Object o) {
    this.producer = getProducer();

    producer.recordsCount(this.range.getRows()).recordsStart(this.range.getFirstRow());

    this.pkgs = producer.getPackages();

    for (int i = 0; i < this.pkgs.size(); i++) {
      dataVisitor.process(facesContext, i, o);
    }
  }
Пример #2
0
  @Override
  public int getRowCount() {
    this.producer = getProducer();

    return (int) producer.getCount();
  }