Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Environment:Windows, GroovyFX 0.1.1
-
Number of attachments :
Description
Please see the attached script.
In my use case I am opening multiple table views based on the same ObservableList. If I add an object to the list the existing views do not get updated
I found a couple of things which are better than JavaFX when multiple views are opened which share the same observable list:
1. In JavaFX update of a cell in one tableview does not lead to an update in other views. (raised as RT-21142 in JavaFX Jira)
In case of GroovyFX I can make it work with the following workaround: By creating a button, setting it as userData for table and in onEditCommit of column calling the fire method on the button before updating the underlying property. In JavaFX, this workaround does not work, thing that works is adding a blank entry to table or resetting items of all table views.
2. In JavaFX if one of the views is sorted by certain sort order, all the existing views are sorted by the same order. In GroovyFX all the views maintain their individual sort order.