I followed the repeater examples to create a data table backed by a
SortableDataProvider but it's not paging correctly.  When the table
first loads, everything looks great, but whenever I click a paging link
I'm only getting the first 10 records back.  My debugging indicates my
SortableDataProvider is always getting a 0 for the 'first' parameter.
Any ideas why this would happen?

Thanks.



List<IColumn> columns = new ArrayList<IColumn>();
    columns.add(new AbstractColumn(new Model("Actions")) {
        public void populateItem(Item cellItem, String componentId,
IModel model) {
            cellItem.add(new ActionPanel(componentId, model));
        }
    });
    columns.add(new PropertyColumn(new Model("User ID"), "userId",
"userId"));
    columns.add(new PropertyColumn(new Model("Company ID"), "cmpnyId",
"cmpnyId"));
    columns.add(new PropertyColumn(new Model("User Name"), "userNm",
"userNm"));
    add(new DefaultDataTable("table", columns,
        new SortableUserDataProvider(user.getCompanyId()), 10));


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to