Skip to content

SM OR - multiple cell selection datatable: columnIdVar isn't update before cellSelectable method is called #171

@hannahmez

Description

@hannahmez

Consider a datatable:
<o:dataTable
columnIdVar="columnIdVar">

with multi cell selection enabled:
<o:multipleCellSelection
cellIds="#{controller.selectedCells}"
cellSelectable="#{controller.isCellSelectable(row)}" />

and dynamic columns:
<o:columns
columnIndexVar="colIndex"
columnId="_#{colId}"
value="#{controller.columnIds}"
var="colId">
...
</o:columns>

Each time a button is clicked the content of the table is updated and the table is rendered.

What happens is when the number of dynamic columns doesn't change between before and after the table update, the columnIdVar isn't updated before calling the cellSelectable method (the content of the columns value doesn't matter, the bug always happens when the size of value doesn't change).
I am using columnIdVar in my cellSelectable method so it is a problem as some cells that should be selectable after the table change aren't because columnIdVar isn't relevant for the new table...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions