-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
UI Framework 10, UI Framework 11, UI Framework 12
-
5
At the moment, all select fields forcibly convert their selected values to string (reference), effectively preventing themselves from having values of different types.
For example:
info.magnolia.ui.framework.datasource.optionlist.OptionSelectFieldSupport creates itemToLinkConverter which model class is set to String this than cause java.lang.ClassCastException when field type is set to something else (Long etc.)
We can simply eliminate the forced conversion logic and should the item to link conversion happen - it can be configured via field definition. This would simplify the implementation of the LinkField support quite a lot as well.
- is related to
-
MGNLUI-5411 Create converters for definition based on SelectFieldDefinition
- Closed
-
MGNLUI-6936 Unable to convert String to Long in select fields
- Closed
-
MGNLUI-5510 Providing defaultValue for SwitchableField causes ClassCastException
- Closed
-
MGNLUI-5553 Allow to set element type for multi-select fields
- Closed