Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
Table content refresh problem
Hello,
I have implemented my table by using the Lazyloading,
In DAO which sends the request:
@Override
public List<Record> find(final LazySearchCriteria criteria, final int offset, final int limit, final List<OrderByColumn> sorts)
{
return new ArrayList<>(mySingleton.getInstance().getClient().search(token, tmpl, offset, limit, sortString).records);
}
And in the container class, it calls the DAO to refresh the result
public class LazyBeanContainer extends BeanContainer
{
private List<?> findItems(int startIndex, int numberOfIds)
{
List<?> items;
items = dao.find(criteria, startIndex, numberOfIds, orderByColumns);
return items;
}
}
When i click on the header of the column, it ask the result table to set the new container data source, and the request is sent with success. the result is changed.
But the visible content is not refreshed.
It will refresh only when i drag a column to change the columns order.
Can you tell me how to force the refresh, please?
Last updated on
You cannot reply to this thread.