You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attached code showcases a problem I recently encountered. It appears it's not possible to defer setting the list of values of a SingleSelectionField and have it match automatically if there's already a selection. In my use case, the selected value is known ahead of time (loaded from a DataSource) and the list of possible matches is calculated after the Form has been created.
In the attached sample code this would be the list3/value3 combination.
Also, the list of items for list1 and list2 are never updated. It appears the problem is inside the factory method as it creates a copy of the input list (assumed to be a plain List<>) by wrapping it with a FXCollections.observableArrayList() instead of inspecting if the runtime type is compatible with ObservableList and use it as is.
The text was updated successfully, but these errors were encountered:
The attached code showcases a problem I recently encountered. It appears it's not possible to defer setting the list of values of a
SingleSelectionField
and have it match automatically if there's already a selection. In my use case, the selected value is known ahead of time (loaded from aDataSource
) and the list of possible matches is calculated after theForm
has been created.In the attached sample code this would be the
list3
/value3
combination.Also, the list of items for
list1
andlist2
are never updated. It appears the problem is inside the factory method as it creates a copy of the input list (assumed to be a plainList<>
) by wrapping it with aFXCollections.observableArrayList()
instead of inspecting if the runtime type is compatible withObservableList
and use it as is.The text was updated successfully, but these errors were encountered: