/** * Returns the rowCount of the underlying DataModel. * * @return */ public int getRowCount() { return getDataModel().getRowCount(); }
private RepeatStatus getRepeatStatus() { return new RepeatStatus(_count == 0, _index + getStep() >= getDataModel().getRowCount(), _count, _index, getOffset(), _end, getStep()); }
int rowCount = getDataModel().getRowCount(); int i = ((begin != null) ? begin : 0); int e = ((end != null) ? end : rowCount);
private void validateAttributes() throws FacesException { int begin = getOffset(); int end = getDataModel().getRowCount(); int size = getSize(); int step = getStep();
Integer step = getStep(); int rowCount = getDataModel().getRowCount(); int i = ((begin != null) ? begin : 0); int e = ((end != null) ? end : rowCount);
UIComponent compositeParent = null; try { int rowCount = getDataModel().getRowCount(); int idx = idxEvent.getIndex(); setIndex(ctx, idx);
public int getRowCount() { if (model != null) { return model.getRowCount(); } else { return wrappedList.size(); } }
/** * <p>Return the number of rows in the underlying data model. If the number * of available rows is unknown, return -1.</p> * * @return the row count. * @throws FacesException if an error occurs getting the row count */ public int getRowCount() { return (getDataModel().getRowCount()); }
/** * <p>Return the number of rows in the underlying data model. If the number * of available rows is unknown, return -1.</p> * * @throws FacesException if an error occurs getting the row count */ public int getRowCount() { return (getDataModel().getRowCount()); }
/** * <p>Return the number of rows in the underlying data model. If the number * of available rows is unknown, return -1.</p> * * @return the row count. * @throws FacesException if an error occurs getting the row count */ public int getRowCount() { return (getDataModel().getRowCount()); }
/** * Get the number of dynamic columns represented by this instance. */ public int getRowCount() { return getDataModel().getRowCount(); }
/** * Returns the rowCount of the underlying DataModel. * * @return */ public int getRowCount() { return getDataModel().getRowCount(); }
/** * <p>Return the number of rows in the underlying data model. If the number * of available rows is unknown, return -1.</p> * * @throws FacesException if an error occurs getting the row count */ public int getRowCount() { return (getDataModel().getRowCount()); }
/** * <p>Return the number of rows in the underlying data model. If the number * of available rows is unknown, return -1.</p> * * @throws FacesException if an error occurs getting the row count */ public int getRowCount() { return (getDataModel().getRowCount()); }
/** * <p>Return the number of rows in the underlying data model. If the number * of available rows is unknown, return -1.</p> * * @return the row count. * @throws FacesException if an error occurs getting the row count */ public int getRowCount() { return (getDataModel().getRowCount()); }
/** * Returns the rowCount of the underlying DataModel. * @return */ public int getRowCount() { return getDataModel().getRowCount(); }
public void walk(FacesContext context, DataVisitor visitor) throws IOException { int rowCount = wrappedModel.getRowCount(); int currentRow = 0; while (rowCount < 0 || currentRow < rowCount) { wrappedModel.setRowIndex(currentRow); if (!wrappedModel.isRowAvailable() || DataVisitResult.STOP.equals(visitor.process(context, currentRow))) { break; } currentRow++; } }
private RepeatStatus _getRepeatStatus() { return new RepeatStatus(_count == 0, _index + getStep() >= getDataModel().getRowCount(), _count, _index, getOffset(), _end, getStep()); }
public void broadcast(FacesEvent event) throws AbortProcessingException { final int actualNoRows = getDataModel().getRowCount(); final Map<String, Object> requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestMap(); final String var = getVar(); final String varStatus = getVarStatus(); populateVar(requestMap, var, varStatus, getValidatedFirst(actualNoRows), getValidatedLast(actualNoRows), getRowIndex()); super.broadcast(event); unpopulateVar(requestMap, var, varStatus); }
@SuppressWarnings("unchecked") public void testConvertListToSerializableListDataModelNullSource() throws Exception { List<Object> sourceList = null; DataModel<Object> resultModel = (DataModel<Object>) this.converter.convertSourceToTargetClass(sourceList, SerializableListDataModel.class); assertNotNull(resultModel); assertTrue(resultModel instanceof Serializable); assertEquals(0, resultModel.getRowCount()); } }