Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24682

duplicate values shown when only one field should

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Several user/group suggestion widgets can be used in the same layout without side effect.
    • Tags:
    • Backlog priority:
      700
    • Upgrade notes:
      Hide

      The item parameter previously used by user_group_display_template.xhtml in an implicit way (not documented) is replaced by the data parameter to avoid any confusion with an existing variable named item, typically an iteration variable of a <ui:repeat> tag.

      As stated by the widget template's documentation, the data parameter is "the field value to display in case info.type is empty".

      It can be used this way:

      <ui:include src="user_group_display_template.xhtml">
        <ui:param name="data" value="#{valueToDisplay}" />
      </ui:include>
      

      See for instance:

      Show
      The item parameter previously used by user_group_display_template.xhtml in an implicit way (not documented) is replaced by the data parameter to avoid any confusion with an existing variable named item , typically an iteration variable of a <ui:repeat> tag. As stated by the widget template's documentation, the data parameter is "the field value to display in case info.type is empty". It can be used this way: <ui:include src= "user_group_display_template.xhtml" > <ui:param name= "data" value= "#{valueToDisplay}" /> </ui:include> See for instance: single_user_suggestion_widget_template.xhtml user_suggestion_widget_template.xhtml
    • Sprint:
      nxfit 10.2.6, nxfit 10.2.7
    • Story Points:
      3

      Description

      1. install nuxeo 7.10
      2. deploy the test jar provided into $NUXEO_HOME/nxserver/bundles
      3. create a document of type Document test
      4. set a Title value
      5. set the Actor value
      6. save the form
      7. observe the value is displayed twice, both in Actor and Real actor fields.

        Attachments

        1. test-doc-contrib.xml
          5 kB
          Antoine Taillefer
        2. test-schema.xsd
          2 kB
          Antoine Taillefer

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 5 hours
                  1d 5h