[JCRTOOLS-64] Can't decorate Query app Created: 07/Oct/23  Updated: 04/Dec/23  Resolved: 04/Dec/23

Status: Closed
Project: JCR Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mykola Assignee: Unassigned
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

6.2.29 DX Core


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   

Steps to reproduce

  1. Create a new light module
  2. Add decoration for my-light-module/decorations/jcr-tools/apps/jcr-tools.yaml
  3. Add a simple text field
subApps:
  query:
    form:
      tabs:
        mainTab:
          fields:
            text:
              label: Text
              $type: textField
              # OR class: info.magnolia.ui.field.TextFieldDefinition

Expected results

Decoration works

Actual results

In java terminal and in Definitions App following error is visible:

Element [info.magnolia.ui.field.TextFieldDefinition@3e1d0324] of type [info.magnolia.ui.field.TextFieldDefinition] may not be added to the collection of type [interface info.magnolia.ui.form.field.definition.FieldDefinition]

Workaround

Development notes



 Comments   
Comment by Roman Kovařík [ 09/Oct/23 ]

Hi NDQ,

 

this app is still written in the Magnolia 5 UI framework.

Could you try to use https://docs.magnolia-cms.com/product-docs/6.2/Support/Magnolia-5-UI-documentation/Dialog-definition-5-UI/Field-definition-5-UI/List-of-fields-5-UI/Text-field-5-UI.html instead?

 

Hope that helps

Roman

Comment by Mykola [ 03/Dec/23 ]

my bad
of course, it makes sense
thank you

Generated at Mon Feb 12 02:17:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.