This content has been marked as final.
Show 4 replies
-
1. Re: incorrect behaviour of rich:inputNumberSlider
ilya_shaikovsky Apr 12, 2007 5:56 AM (in response to andersun)Value of the slider - is just string property that will store the result you will set. In your case the value can be from 0 to 10 and the step is 0.1
-
2. Re: incorrect behaviour of rich:inputNumberSlider
andersun Apr 12, 2007 8:12 AM (in response to andersun)Hi ilya
So, if we have..... Float getMark() { return new Float(2.0); } ..... <rich:inputNumberSlider value="#{bean.mark}" step="0.1" minValue="0" maxValue="10" maxlength="3" />
it's work fine - slider reproduces value - 2.0
But if we haveList getMarks() { List marks - new ArrayList(); marks.add(new Float(2.0)); marks.add(new Float(3.6)); marks.add(new Float(6.5)); return marks; } ...... <rich:dataTable value="#{bean.marks}" var="mark"> <h:column> <rich:inputNumberSlider value="#{mark}" step="0.1" minValue="0" maxValue="10" maxlength="3" /> </h:column> </rich:dataTable>
sliders reproduce following values - 2.1, 3.7, 6.6 (increased on 0.1)
If instead of rich:inputNumberSlider is using rich:inputNumberSpinner or h:inputText - it's work fine (2.0, 3.6, 6.5 values) -
3. Re: incorrect behaviour of rich:inputNumberSlider
sergeysmirnov Apr 12, 2007 12:50 PM (in response to andersun)http://jira.jboss.com/jira/browse/RF-95 has been added
-
4. Re: incorrect behaviour of rich:inputNumberSlider
andersun Apr 13, 2007 3:37 AM (in response to andersun)Thanks a lot