Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PropertyListing not refreshing #152

Open
vaithu opened this issue Oct 14, 2020 · 0 comments
Open

PropertyListing not refreshing #152

vaithu opened this issue Oct 14, 2020 · 0 comments

Comments

@vaithu
Copy link

vaithu commented Oct 14, 2020

My code is

wrapperBox = new ArrayList<>(FlowUtilsWrapper.activityLog(mf, lastNHours.getValue(), activityLogLogLevel.getValue()));
        ListDataProvider<PropertyBox> dataProvider = new ListDataProvider<>(wrapperBox);

and the Listing is

PropertyListing activityLogListing = Components.listing.properties(ActivityLogModel.SNO, ActivityLogModel.TIMESTAMP,
                ActivityLogModel.STATUS, ActivityLogModel.SOURCE, ActivityLogModel.DETAIL)
                .dataSource(dataProvider)

I get this wrapperBox array list with different values based on a combobox value. The problem that I've now is, though wrapperBox array list gets new values, the listing is not getting updated/refreshed. It keeps showing same old data.

List<PropertyBox> list = FlowUtilsWrapper.activityLog(mf, lastNHours.getValue(), activityLogLogLevel.getValue());
            if (!list.isEmpty()) {
//                wrapperBox.clear();
                wrapperBox.addAll(list);
//                wrapperBox = new ArrayList<>(list);
//                MyUtils.write(wrapperBox);
//                dataProvider.addDataProviderListener(dataChangeEvent -> dataChangeEvent.getSource().refreshAll());
                activityLogListing.refresh();
            }

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant