[jboss-jira] [JBoss JIRA] (DROOLS-3048) [DMN Designer] CellEditorControl needs to issue a new instance per use

Michael Anstis (JIRA) issues at jboss.org
Thu Sep 27 09:58:00 EDT 2018


Michael Anstis created DROOLS-3048:
--------------------------------------

             Summary: [DMN Designer] CellEditorControl needs to issue a new instance per use
                 Key: DROOLS-3048
                 URL: https://issues.jboss.org/browse/DROOLS-3048
             Project: Drools
          Issue Type: Bug
          Components: DMN Editor
    Affects Versions: 7.12.0.Final
            Reporter: Michael Anstis
            Assignee: Michael Anstis
            Priority: Critical


A {{Popover}} used to edit a cell or column header (or any other DOM-based editor for that matter) disappears following a change in the widget that causes a {{Layer.draw()}} if the grid is sufficiently wide that there is a column not visible on screen.

All cells/columns that use {{CellEditorControls}} (containing, for example, the {{Popover}}) share a single instance from {{CellEditorControl}} and hence although the User makes a change in a visible column the invisible column (scrolled off screen) has its DOM resources destroyed that is the same instance as that for the visible column.

See https://github.com/kiegroup/appformer/blob/master/uberfire-extensions/uberfire-wires/uberfire-wires-core/uberfire-wires-core-grids/src/main/java/org/uberfire/ext/wires/core/grids/client/widget/grid/impl/BaseGridWidget.java#L341. If a column is not in the _body_ or _floating_ columns collection its DOM resources are destroyed.

I probably need to ensure different instances of {{CellEditorControl}} are created for each column/cell where we currently share the same instance. Also check for destruction of DOM elements in {{Document}} when grids/columns etc are destroyed.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list