3 Replies Latest reply on Jan 9, 2010 10:50 PM by boy18nj

    Is it possible to disable in listshuttle?

    boy18nj

      I am looking to disable any button inside listshuttle. Like i want to disable the copy and remove buttons based upon the user security.

      Can you please let me know how is this possible?

        • 1. Re: Is it possible to disable in listshuttle?
          nbelaevski

          Hi,

           

          You can use rich:listShuttle attributes to hide unnecessary buttons. Please refer to component documentation.

          • 2. Re: Is it possible to disable in listshuttle?
            boy18nj

            i tried used these attributes in different ways. Still it makes no difference.

             

            <rich:listShuttle id="lsi" sourceValue="#{codeBrandsBean3.airlines}"
            targetValue="#{codeBrandsBean3.target}" var="air"
            targetListWidth="220"
            copyControlLabel="Copy" removeControlLabel="Remove"
            removeAllControlLabel="Remove all"
            copyAllControlDisabled="true"
            upControlDisabled="false"
            >
            <f:facet name="topControlDisabled">
            <h:outputText value="Move to top" />
            </f:facet>
            <f:facet name="bottomControlDisabled">
            <h:outputText value="Move to top" />
            </f:facet>
            <f:facet name="upControlDisabled">
            <h:outputText value="Move to top" />
            </f:facet>
            <f:facet name="downControlDisabled">
            <h:outputText value="Move to top" />
            </f:facet>
            </rich:listShuttle>

             

             


            Can you please help to recommend to use the right attribute to disable ordering control sets.

            • 3. Re: Is it possible to disable in listshuttle?
              boy18nj

              finally i got it. but got to know about the attributes from rich:orderlingList.

              • "orderControlsVisible" attribute has two values: "true" or "false". If false                     Up and Down controls are not                     displayed.

              • "fastOrderControlsVisible" attribute has two values: "true" or "false". If false                     Top and Bottom controls are not                     displayed.