Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12588 Make Select2 widgets more generic
  3. NXP-12636

Add document visibility check on generic select2 widget templates

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8-SNAPSHOT
    • Fix Version/s: 5.8
    • Component/s: Seam / JSF UI
    • Tags:
    • Sprint:
      Sprint 1_old

      Description

      The following templates

      • select2_widget_template.xhtml
      • select2_multiple_widget_template.xhtml

      should verify that the selected documents can be seen in view mode. If not, an appropriate message should be displayed like in documentSuggestion.

          <h:outputText rendered="#{not empty field}">
            <nxu:set var="canSee"
              value="#{docSuggestionActions.getDocumentExistsAndIsVisibleWithId(field)}">
              <h:outputText rendered="#{canSee}">
                <nxu:set var="doc"
                  value="#{docSuggestionActions.getDocumentWithId(field)}">
                  <h:outputText value="#{nxd:titleOrId(doc)}" />
                </nxu:set>
              </h:outputText>
              <h:outputText rendered="#{not canSee}"
                value="#{messages['label.documentSuggestion.docNotFoundOrNotVisible']} (#{field})" />
            </nxu:set>
          </h:outputText>
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: