1 Reply Latest reply on Apr 17, 2008 9:19 AM by Ilya Shaikovsky

    inputNumberSlider with Date class

    Jack Foster Newbie

      Hi there!

      I was wondering if it is possible to use the rich:inputNumberSlider selecting a date in between two dates.

      My thought was that if I created a converter, I could display as date formated as a string to the user, and work with epoch time represented as a long on the backend. That way the slider can use actual numeric values but the user can see a nice representation of those values. When trying to implement this, it looks like it will always use the string value as the value to slide.

      So I did something like this:

      <rich:inputNumberSlider converter="#{longToPrettyDateStringConverter}"
      value="#{obj.startDateAsLong}"
      minValue="#{obj.startDateAsLong}"
      maxValue="#{obj.stopDateAsLong}" />


      Am I going about it the wrong way?
      Jack