Details
-
Bug
-
Resolution: Not an issue
-
Neutral
-
None
-
6.2.3
-
None
-
None
Description
When using 6UI syntax to define a text field, type property doesn't work and throws an error.
Steps to reproduce:
- Use the following field to store a Long value within a component dialog:
text: class: info.magnolia.ui.field.TextFieldDefinition type: java.lang.Long label: Long - Try opening the component editor and you will see following error:
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
- Try again replacing the class property with {{$type}:
text: $type: textField type: java.lang.Long label: Long - Retry opening the component dialog. Same error occurs.
Expected results:
Dialog opens correctly and a value of the configured type is stored.
Development notes:
It has been tested with SelectField and type property works ok, it seems that only happens with text field
Checklists
Acceptance criteria