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

nxdir:selectOneListbox tag ignores notDisplayDefaultOption

    XMLWordPrintable

    Details

      Description

      1. The nxdir:selectOneListbox tag is used in ./nxserver/nuxeo.war/create_relation.xhtml:
              <h:panelGroup>
                <nxdir:selectOneListbox value="#{relationActions.predicateUri}"
                  directoryName="predicates" id="predicateUri" required="true"
                  localize="true" />
                <h:message for="predicateUri" class="errorMessage" />
              </h:panelGroup>
        
      2. Modifying this into:
              <h:panelGroup>
                <nxdir:selectOneListbox value="#{relationActions.predicateUri}"
                  directoryName="predicates" id="predicateUri" required="true"
                  localize="true" size="1" notDisplayDefaultOption="false" />
                <h:message for="predicateUri" class="errorMessage" />
              </h:panelGroup>
        

        In 5.8 one can see the combobox displaying the default option (see goodBehavior.png) but from 6.0 and later versions it does not (see badBehavior.png). Even forcing the defaultoption to be displayed with notDisplayDefaultOption="false" does not work and selects the first value of the list.

      It seems there was some changes between 5.8 and 6.0 for this tag and some classes were created for legacy.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h