Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-21326

Forms - Impossible to define a transient property in a form if it is part of a set.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.0, 5.2
    • Fix Version/s: None
    • Component/s: Share Application
    • Security Level: external (External user)
    • Labels:
      None
    • Regression:
      Regression

      Description

      • Steps to reproduce:

      Define a form using 'transient' property within a set:

      <config evaluator="model-type" condition="cm:content">
            <forms>
               <form>
                  <field-visibility>
                     <show id="cm:name" />
                     <show id="cm:title" force="true" />
                     <show id="cm:description" force="true" />
                     <show id="transientExample1" />
                  </field-visibility>
                  <appearance>
                     <set id="set_example1" appearance="title" label-id="Example1" template="/org/alfresco/components/form/2-column-set.ftl" />
                     <set id="set_example2" appearance="title" label-id="Example2" template="/org/alfresco/components/form/2-column-set.ftl" />
                     <field id="cm:name" set="set_example1">
                       <control>
                          <control-param name="maxLength">255</control-param>
                       </control>
                     </field>
                     <field id="cm:title" set="set_example1">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                     </field>
                     <field id="cm:description" set="set_example2">
                        <control>
                           <control-param name="activateLinks">true</control-param>
                        </control>
                     </field>
                     <field id="transientExample1" set="set_example2">
                        <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
                     </field>
                  </appearance>
               </form>
           </forms>
      </config>
      
      • Result:

      The transient property "transientExample1" isn't shown.

      • Commit of the behaviour change:

      Commit 77483 in the line 1424 of the class "FormUIGet.java" in the method "generateTransientFieldModel"

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                dreina David (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Structure Helper Panel