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

Add form property value access API


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

      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).

        Acceptance criteria

              apchelintcev Aleksandr Pchelintcev
              apchelintcev Aleksandr Pchelintcev
              0 Vote for this issue
              2 Start watching this issue


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