return viewObject.getRowCount();
}
public Object getRowData() {
// Return a map to be used in EL expressions to acces the attributes of the row.
final Row row = viewObject.getCurrentRow();
return new AbstractMap<String, Object>() {
public Set<Map.Entry<String, Object>> entrySet() {
throw new UnsupportedOperationException("CollectionModelImpl.getRowData.entrySet not supported.");
}
@Override
public Object get(final Object key) {
return row.getAttribute(key.toString());
}
};
}