[MGNLUI-7601] Fields (except for the textField) inside of new multiValueField don't work Created: 07/Nov/22  Updated: 29/Nov/22  Resolved: 18/Nov/22

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
causality
caused by MGNLUI-7457 Implement a simple, datasource agnost... Closed
relation
is related to MAGNOLIA-8636 PropertyUtil: null list value always ... Open
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7602 Implementation Sub-task Completed Roman Kovařík  
MGNLUI-7603 Rw Sub-task Completed Adam Siska  
MGNLUI-7604 Preint QA Sub-task Completed Adam Siska  
MGNLUI-7605 QA Sub-task Completed Jaromir Sarf  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* 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: FieldsMaintenance
Sprint: Nucleus 23
Story Points: 2
Team: Nucleus

 Description   

Steps to reproduce

$type: multiValueField
  field: 
    $type: comboBoxField    

Expected results

The values are properly written and read.

Actual results

An exception is thrown

Workaround

None

Development notes

I'd should be possible to do this at definition level:

public void init() {
        if (getConverterClass() == null && getField() instanceof AbstractSelectFieldDefinition) {
            setFieldBinderClass((Class) SelectFieldBinder.class);
        }
}

and SelectFieldBinder extends the condition:

if (field instanceof MultiSelect || *field instanceof MultiField*) {
                        return new MultiItemConverter(converter);
}

Generated at Mon Feb 12 09:47:37 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.