Загрузка изображения в столбец Table

<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd"
        caption="msg://browseCaption"
        focusComponent="newEntitiesTable"
        messagesPack="com.company.er.web.screens.newentity">
    <data readOnly="true">
        <collection id="newEntitiesDc"
                    class="com.company.er.entity.NewEntity"
                    view="_local">
            <loader id="newEntitiesDl">
                <query>
                    <![CDATA[select e from er_NewEntity e]]>
                </query>
            </loader>
        </collection>
    </data>
    <dialogMode height="600"
                width="800"/>
    <layout expand="newEntitiesTable"
            spacing="true">
        <filter id="filter"
                applyTo="newEntitiesTable"
                dataLoader="newEntitiesDl">
            <properties include=".*"/>
        </filter>
        <groupTable id="newEntitiesTable"
                    width="100%"
                    dataContainer="newEntitiesDc">
            <actions>
                <action id="create" type="create"/>
                <action id="edit" type="edit"/>
                <action id="remove" type="remove"/>
            </actions>
            <columns>
            </columns>
            <rowsCount/>
            <buttonsPanel id="buttonsPanel"
                          alwaysVisible="true">
                <button id="createBtn" action="newEntitiesTable.create"/>
                <button id="editBtn" action="newEntitiesTable.edit"/>
                <button id="removeBtn" action="newEntitiesTable.remove"/>
            </buttonsPanel>
        </groupTable>
        <hbox id="lookupActions" spacing="true" visible="false">
            <button action="lookupSelectAction"/>
            <button action="lookupCancelAction"/>
        </hbox>
    </layout>
</window>

У вас в таблице нет колонок, соотвественно невозможно добавить генератор для несуществующей колонки.

Я создал колонки, но ошибка осталась

<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd"
        caption="msg://browseCaption"
        focusComponent="newEntitiesTable"
        messagesPack="com.company.project.web.screens.newentity">
    <data readOnly="true">
        <collection id="newEntitiesDc"
                    class="com.company.project.entity.NewEntity"
                    view="_local">
            <loader id="newEntitiesDl">
                <query>
                    <![CDATA[select e from project_NewEntity e]]>
                </query>
            </loader>
        </collection>
    </data>
    <dialogMode height="600"
                width="800"/>
    <layout expand="newEntitiesTable"
            spacing="true">
        <filter id="filter"
                applyTo="newEntitiesTable"
                dataLoader="newEntitiesDl">
            <properties include=".*"/>
        </filter>
        <groupTable id="newEntitiesTable"
                    width="100%"
                    dataContainer="newEntitiesDc">
            <actions>
                <action id="create" type="create"/>
                <action id="edit" type="edit"/>
                <action id="remove" type="remove"/>
            </actions>
            <columns>
                <column id="title"/>
                <column id="number"/>
            </columns>
            <rowsCount/>
            <buttonsPanel id="buttonsPanel"
                          alwaysVisible="true">
                <button id="createBtn" action="newEntitiesTable.create"/>
                <button id="editBtn" action="newEntitiesTable.edit"/>
                <button id="removeBtn" action="newEntitiesTable.remove"/>
            </buttonsPanel>
        </groupTable>
        <hbox id="lookupActions" spacing="true" visible="false">
            <button action="lookupSelectAction"/>
            <button action="lookupCancelAction"/>
        </hbox>
    </layout>
</window>

Вы подключаете генератор к колонке image, которой нет.

Все работает. спасибо!
Только, когда я перезахожу на сервер при открытии сущности выдает такую ошибку
IllegalStateException: Cannot get unfetched attribute [image] from detached object com.company.project.entity.NewEntity-c99e9eb0-238f-e04d-8156-385fe0083b56 [detached].

Такие ошибки означают, что вы пытаетесь обратиться к атрибуту сущности, который не включен во view, с которой она грузится.

В быстром старте есть пример создания view для сущности.

Спасибо! Все работает.
Не подскажете, как можно сделать, чтобы эта часть была менее заметна?
image

Т.к. этот вопрос не относится к текущему, не могли бы Вы создать отдельный топик, чтобы другим пользователям с похожей проблемой было проще найти ответ?