[MGNLUI-2960] Impossible to save switchable values inside a multifield Created: 02/Jun/14  Updated: 23/Mar/15  Resolved: 23/Mar/15

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

Type: Bug Priority: Major
Reporter: Olga Assignee: Mikaël Geljić
Resolution: Workaround exists Votes: 0
Labels: dialog, multifield, switchable
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File 2014-05-28_1605.png     PNG File 2014-05-28_1610.png     PNG File 2014-05-28_1611.png     PNG File 2014-05-28_1616.png    
Issue Links:
Relates
relates to MGNLUI-2871 Enhance the behavior of complex fields Closed
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
Date of First Response:

 Description   

When you create a switchable field inside a multifiled, it is impossible to save the values. See the configuration of the dialog, the dialog itself and the error in the attachment



 Comments   
Comment by Mikaël Geljić [ 18/Jun/14 ]

Hi Olga,

In 5.2.5 were introduced new "delegating" transformers for complex fields like MultiField, CompositeField or SwitchableField.
We call them delegating because they do not care about reading/writing property values to the JCR items, but rather leave it to the subfields' transformers to do so (typically using the default BasicTransformer).

These new transformers are:

  • info.magnolia.ui.form.field.transformer.multi.DelegatingMultiValueFieldTransformer for MultiField
    • Please note, as stated in the javadoc, that this is an equivalent of the MultiValueChildNodeTransformer; I would have to check how to properly extend the new transformer if you need a particular node structure, as it was once planned to reimplement some of the complex transformers on top of the delegating one.
  • info.magnolia.ui.form.field.transformer.composite.DelegatingCompositeFieldTransformer for CompositeField and SwitchableField.

Please let me know if this solves your issue, and/or if you need further advice.

Cheers,

Comment by Mikaël Geljić [ 23/Mar/15 ]

Hi,
This issue was inactive for several months now, and will thus be closed.
Do let us know / reopen if you still have any difficulties with that.
Cheers,

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