Title: How to persist filter values across different views in Jmix 2+?
Description:
Hi,
I’m developing a web application using Jmix 2.2.5 and Spring Boot 3.2. I want to persist the values of filter fields in a ListView, so that when I return to the view (even after visiting other views), the previously entered filter values are still set.
I’ve tried using a @VaadinSessionScope bean to store the filter values, restore them in the BeforeShow/ReadyEvent and reload the data provider, but the solution is not working as expected. The filter values are not always restored.
Has anyone implemented a similar feature? Is there an official or recommended approach to achieve persistent filter fields across navigation in Jmix?
Thank you!
FilterStateHolder.java (600 Bytes)
FpspListView.java (1.6 KB)
fpsp-list-view.xml (3.7 KB)
FpspDetailView.java (569 Bytes)
fpsp-detail-view.xml (2.2 KB)
Fpsp.java (1.9 KB)