[MGNLUI-5510] Providing defaultValue for SwitchableField causes ClassCastException Created: 18/Nov/19 Updated: 29/Jan/20 Resolved: 24/Jan/20 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Adam Siska | Assignee: | Adam Siska |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | M6-UI-1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Epic Link: | M6 UI & UX Improvements | ||||||||
| Sprint: | UI Framework & 6.2 Ramp up 15 | ||||||||
| Story Points: | 3 | ||||||||
| Description |
|
Providing defaultValue for RadioButtonGroupField (bellow $type: radioButt... line, see docu example) in SwitchableField definition causes ClassCastException. 1) defaultValue: foo This causes CCE: java.lang.String cannot be cast to info.magnolia.ui.form.Option 2) defaultValue: This causes CCE: info.magnolia.ui.form.Option cannot be cast to java.lang.String https://documentation.magnolia-cms.com/display/DOCS62/Switchable+field+-+6+UI |