[MGNLUI-8082] FormView#getPropertyValue could support composite fields Created: 22/May/23  Updated: 13/Jun/23  Resolved: 13/Jun/23

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

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

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)
Release notes required:
Yes
Work Started:
Approved:
Yes

 Description   

Steps to reproduce

form:
  properties:
    name:
      $type: compositeField
      properties:         
        name:
          $type: textField
actions:
  commit:
    class: my.custom.action  

 

  1. Use the form above.
  2. Call FormView#getPropertyName from the action.

Expected results

I can retrieve the name field value as this is still a simple use case. 

Actual results

I can't access the field value, moreover FormView#getPropertyNames implemented by the same interface returns this field name.

Workaround

Avoid the complex field and add the field to the top of the form.

Development notes


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