Closed sergiomichels closed 11 years ago
It seems that setting other properties in the table also trigger the query:
setVisibleColumns()
setColumnCollapsingAllowed()
But looking here it seems that this occurs because the table is already added in the main layout. Is this the default behavior?
I already complained about that http://dev.vaadin.com/ticket/10473. Unfortunately, it is caused by Vaadin not this container.
Please, correct me if I'm messing up.
I created a DAO and a SearchCriteria. In my DAO I put a debug to see the query that's made. I can see that the query runs more than once when I'm loading my view.
The first time, when I set the container in the PagedTable, the query runs for 25 records:
After that, the query run one more time, but with 10 (PagedTable changed the number of records per page?)
Then, the query runs one more time for each Converter that I add to the table:
table.setConverter("myField", new Converter<String, String>(){ ... });
Am I'm missing something or the setConverter shouldn't touch the database?