Hi! everyone, I have some problems with the pagedtable addon, I create a simple table that show some system event, but there are so many that I use the pagedtable, but when I try to filter the result, I need to remove the last results on the table, but when I use removeAllItems() method, this happen:
if(this.getItemIds().size()>0){
this.removeAllItems();
}
this.dsevent.reload((Date)startdate.getValue(), (Date)enddate.getValue() ); // this make a refresh of the data given two dates
requestRepaint();
....
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
at com.jensjansson.pagedtable.PagedTableContainer.removeAllItems(PagedTableContainer.java:128)
...
I dont know whats going on there, another thing, this is more like a question, How I can give a default page height? I try to give a default pageLenght of 10 instead of the default 25, but it dosent take it, it still 25 results per page, why is that?
tablePage.setSizeFull();
tablePage.setContainerDataSource(this.dsevent);
tablePage.setSelectable(true);
tablePage.setPageLength(10);
tablePage.setImmediate(true);
thanks for your help