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

Should inform developer when an invalid field is used on a Vaadin declarative layout for a form

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None

    Description

      When a developer places a field on a vaadin declarative layout which is used for a form, but the property is not defined on the form:
      1. The system should not persist any content entered into this field into JCR (because the form definition should be the only definer of the content model)

      This is currently implemented, but should be removed:
      "It is possible to bind non-Magnolia fields. You do not need to define a form property in YAML before you can use it in the template. Instead, you can insert the component directly into the template. For example, with <vaadin-text-field caption="email" _id="email"/>, you can create a text field as well as store that value in the JCR path specified by the _id attribute email."

      2. The system should inform the developer that the field is invalid.How best to do this needs some discussion on technical feasability.
      Ideally via a visible indication in the form rendering. Also as a warning in the log, and maybe as a problem in the definitions app.

      See: https://documentation.magnolia-cms.com/display/DOCS61/Form+definition+-+6+UI?focusedCommentId=194486592#Formdefinition-6UI-Declarativelayout

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD