GuiDevelopmentException: BulkEditor component can be used only in legacy screens based on AbstractWindow

不能在7的界面里面用了么?

发现7是使用bulkEditAction,但是includeProperties在哪里设置呢?

我看到你已经在英文论坛咨询了,我这引用一下英文论坛帖子,这个帖子就关闭了。
参考文档:
https://doc.cuba-platform.com/manual-7.1/std_list_actions.html?_ga=2.30120959.1173449955.1563755491-1124740531.1553324657#gui_BulkEditAction
相关帖子:
https://www.cuba-platform.com/discuss/t/migration-to-cuba-7-api-required-components-migration/9114/5?u=lugreen

v7 里面是稍微麻烦些了。看了一下,大概是这样:

    @Inject
    private BulkEditors bulkEditors;

    @Subscribe("bulkEdit")
    private void onBulkEditClick(Button.ClickEvent event) {
        // 参数可以参考 BulkEditAction#actionPerform
        bulkEditors.builder()
                .withIncludeProperties() // 这里设置 inludeProperties
                .withListComponent()
                .create()
                .show();
    }

嗯,只能自己把低版本的逻辑再封装成一个Action