[MGNLUI-5554] Port StaticField to new Framework Created: 10/Dec/19  Updated: 17/Feb/20  Resolved: 17/Feb/20

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

Type: Story Priority: Neutral
Reporter: Ilgun Ilgun Assignee: Adam Siska
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 2.5h
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by ABTEST-113 New Test Audience - add the static field Closed
documentation
to be documented by MGNLUI-5509 DOC: Static field - 6 UI 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)
Documentation update required:
Yes
Date of First Response:
Epic Link: UI framework: forms, dialogs, content editing
Sprint: UI Framework & 6.2 Ramp up 15
Story Points: 3

 Description   

Background

Previously we have had fields which can render simple text. However, in the new ui-framework; we have lost this functionality. It generally comes handy to have this especially dealing with SwitchableFields.

 

 

AC

  • Port info.magnolia.ui.form.field.StaticField to new ui-framework 


 Comments   
Comment by Roman Kovařík [ 04/Feb/20 ]

The field can be now used only for JCR (binder tries to bind it to a property, but just in JCR are those created if do not exist).
e.g. adding this field to (non JCR) assets app results in:
Caused by: java.lang.IllegalArgumentException: Could not resolve property name test from info.magnolia.dam.app.data.AssetPropertySetFactory$Set@487e183a

There is a workaround for unbound properties though, if we use different impl, see https://git.magnolia-cms.com/projects/ENTERPRISE/repos/content-dependencies/pull-requests/20/diff#magnolia-content-dependencies-ui/src/main/java/info/magnolia/module/dependencies/field/DependenciesViewDefinition.java.

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