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...
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...