Abstract window in frame - Filter not working

Hi guys, just want to let you know that when you have abstract window with tables+filters, filters won’t work as expected. table/datasource is refreshed, but data are not filtered. When you open this directly (without nesting in frame) it works as expected.


  1. Create sidepanel menu template
  2. Create abstract window eg. Dashboard
  3. Add some table/s and filter/s into Dashboard
  4. Extend Main Window and add frame into it, set frame screen to Dashboard

Dashboard’s filters wont work in Main Window, but will work in Dashboards own screen (Applications-> Dashboards).

Similar things happens with popup windows as well.

If this really is a bug please add to YouTrack, I am not sure if it is some properties problem or bug.

1 Like

I just found out in logs
WARN [http-nio-8080-exec-103/app/admin] com.haulmont.cuba.gui.xml.layout.loaders.FrameLoader - Frame class should not be inherited from AbstractWindow. It may cause problems with controller life cycle. Frame controllers should inherit AbstractFrame.
:slight_smile: So I guess you know about this :slight_smile:

This even results into this
ERROR [http-nio-8080-exec-107/app/anonymous] com.haulmont.cuba.gui.components.filter.FilterDelegateImpl - Exception on loading default filter ''
if you open new window

Hi. The same happens even if AbstractFrame is used

Unfortunately, I could not reproduce the problem.
Probably I have misunderstood something.
Did you created a screen with the “Side menu main window” template and put the frame onto it?
Did you adjust Height of the frame? Maybe the filter works but part of the table is not visible?
Could you prepare and share a little project which will illustrate the issue?

Able to reproduce with the test project from related topic.

Thank you for reporting the problem.
We have created a YouTrack issue.
As I wrote in the related topic assigning ID to the frame should solve the problem.

As written in the log, you should create a screen inherited from AbstractFrame to use it in the frame component.

Great job Rostislav, thank you for info.

:ticket: See the following issue in our bug tracker: