cuba-platform / cuba

CUBA Platform is a high level framework for enterprise applications development
https://www.cuba-platform.com
Apache License 2.0
1.34k stars 219 forks source link

Editable table should consider the @Lookup annotation #490

Open haulmont-git opened 7 years ago

haulmont-git commented 7 years ago

https://www.cuba-platform.ru/support/topic/выпадающий-список-в-table


Original issue: https://youtrack.haulmont.com/issue/PL-9407

kgeis commented 5 years ago

This bug is pre-7, so it might not seem relevant, but I am seeing it in 7.1.1 with the new generic GUI framework.

kgeis commented 5 years ago

Fixing this might be as easy as adding Table to DataGridEditorComponentGenerationStrategy#createComponent. Something like this:

        if (context.getComponentClass() == null
                || !(DataGrid.class.isAssignableFrom(context.getComponentClass())
                    || Table.class.isAssignableFrom(context.getComponentClass())) {
            return null;
        }

I would then suggest renaming the class because it's not just for DataGrid.