This content has been marked as final.
Show 2 replies
-
1. Re: SerializableDataModel and real database pagination
mohsens Sep 30, 2008 3:37 AM (in response to mohsens)I come up with <rich:dataTable> which internally instantiates and run the following method inside
public void modify(List<FilterField> filterFields, List<SortField2> sortFields) { int rowCount = originalModel.getRowCount(); if (rowCount > 0) { rowKeys = new ArrayList<Object>(rowCount); } else { rowKeys = new ArrayList<Object>(); } FacesContext context = FacesContext.getCurrentInstance(); try { originalModel.walk(context, new DataVisitor() { public void process(FacesContext context, Object rowKey, Object argument) throws IOException { originalModel.setRowKey(rowKey); if (originalModel.isRowAvailable()) { rowKeys.add(rowKey); } } }, new SequenceRange(0, -1), null); } catch (IOException e) { log.error(e.getMessage(), e); } filter(filterFields); sort(sortFields); }
So my walk method is always called with a range which is explicitly new'd as SequenceRange(0, -1). Why is it so?
Any hint?[img][/img] -
2. Re: SerializableDataModel and real database pagination
mohsens Oct 6, 2008 8:25 AM (in response to mohsens)Any help? I'm really get confused with this issue.