4 Replies Latest reply on Sep 27, 2007 5:41 AM by fmarwede

    Some Attributes of InputNumberSlider don't work

      Hi,

      I'm using RichFaces 3.1.0 GA and I have a problem concerning the InputNumberSlider. It seems to me that it ignores the attributes maxlength and inputSize for the input field.

      Here my code snippet:

       <rich:inputNumberSlider
       minValue="#{ctrl.minDuration}"
       maxValue="#{ctrl.maxDuration}"
       step="#{ctrl.step}" showInput="true"
       value="#{ctrl.durationTime}"
       disabled="#{ctrl.status.controlsDisabled}"
       style="margin-top:14px;margin-left:8px;"
       width="400px"
       inputSize="2"
       maxlength="2"
       />
      


      Is it a bug or is something wrong?

      Thanks!

        • 1. Re: Some Attributes of InputNumberSlider don't work
          ilya_shaikovsky

          under current snapshot - works fine for me.

          JSF 1.2_04
          Facelets 1.1.12
          Tomcat 6

          • 2. Re: Some Attributes of InputNumberSlider don't work

            Thank you for testing that. Currently maxlength is working fine for me too, but inputSize is still ignored. With value '2' I get an input field for ca. 6 numbers.

            Using current snapshot,
            myfaces 1.1.5,
            tomahawk 1.1.6,
            Tomcat 5.5.

            • 3. Re: Some Attributes of InputNumberSlider don't work
              ilya_shaikovsky

              Check please in the HTML source size attribute for corresponding input. For me works fine after switching from JSF RI to myFaces (the only difference that myFaces 1.2)

              • 4. Re: Some Attributes of InputNumberSlider don't work

                Hmm...in the html source the size attribute is "2" like expected. In the browser (Firefox 2.0) the field is still six numbers long. My workaround at the moment: Using the inputStyle attribute of InputNumberSlider with a css value for width. That works.

                But another problem: I tried to update my libraries and decided to clean up my lib folder in general. My simpel question:

                What libraries I need when I wanna use Richfaces and Tomahawk?

                These are clear:

                richfaces-api-3.1.1-SNAPSHOT.jar
                richfaces-ui-3.1.1-SNAPSHOT.jar
                richfaces-impl-3.1.1-SNAPSHOT.jar
                tomahawk-1.1.6.jar

                But the further dependencies I don't understand. Depends tomahawk from myfaces, what about facelets, basic jsf libs or el libs...?

                I tried to get that information on apache sides, but I don't understand what they write there :-( Please help!

                Thank you very much.