5 Replies Latest reply on Jul 20, 2007 7:28 AM by wesleyhales

    DataSlider

      I think that there is a bug in getSliderRange() method of UIDataFltrSlider class.

      The loop for the range add increment value to getStartRange() and do it
      getEndRange().intValue() / getIncrement() times.

      So if I start from 200 and ent with 210 with incerment of 10 I get this range
      200,210,220,230,240,250,260,270,280,.......400,210

      This is done becuase segmentTotal doesn't take into acount the fact that I didn't start from 0 but from 200.

      This cause undesired result in the UI.

      does any one know about it and is their an option for a patch?

        • 1. Re: DataSlider
          wesleyhales

          I will take a look... can you post your slider component settings?

          • 2. Re: DataSlider

            <rich:dataFilterSlider
            binding="#{results.dataFilterSliderSupplier}"
            sliderListener="#{results.doSupplierSlide}"
            forValRef="results.product.suppliers" filterBy="getFixFare"
            for=":hotelForm:hotel:hotelResults" manualInput="false" onSlide="true"
            onChange="true"
            startRange="200"
            endRange="300" increment="1"
            trailer="true" handleValue="#{results.intMaxFareSupplier}"
            trackStyleClass="track" trailerStyleClass="trailer"
            rangeStyleClass="range" styleClass="sliderContainer"
            width="176px"
            handleStyleClass="handle" style="border:0px;"
            id="slider_2">

            • 3. Re: DataSlider
              wesleyhales

              Thanks! I just checked in fix for this in trunk (r1691)

              • 4. Re: DataSlider

                Thanks, Is there a bug/issue number for this issue?

                • 5. Re: DataSlider
                  wesleyhales

                  Rf-474