Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5329

Add form property value access API

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Neutral
    • 6.2
    • 6.1.1
    • None
    • None
    • Yes
    • UI Framework 4

    Description

      Previously forms and other editors would be continiously connected to the datasource item and would directly write the changed properties. Due to that actions that operate over such items could fetch the changed values directly from them.

      Now forms only write the changes to an item when some sort of save action is fired. All the pending changes are effectively stored in the form's binder/field components. API that would bridge to the bindings is required.

      At the moment we have:

          <V> Stream<V> getFieldValue(Class<V> valueType);
      

      This would fetch all the values of the same type, which has obvious flaws.

      As a replacement I suggest that we add a method that let's access the property value (optionally typed) by property name and, since we support i18n, by locale (optionally as well).

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                apchelintcev Aleksandr Pchelintcev
                apchelintcev Aleksandr Pchelintcev
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 4h 31m
                    4h 31m