Wednesday, December 25, 2013

ADF - setting default value for Range Slider

When using a range slider if you put minimum=0 and maximum=10000 then it will look like this :

            <af:inputRangeSlider value="#{bindings.area.inputValue}"
                                 shortDesc="#{bindings.area.hints.tooltip}"
                                 label="#{bindings.area.hints.label}"
                                 required="#{bindings.area.hints.mandatory}"
                                 id="irs1" autoSubmit="true" majorIncrement="-1"
                                 minorIncrement="-1" minimumIncrement="100"
                                 maximum="10000" partialTriggers="cil3" styleClass="selectField"
                                 animationInterval="0"
                                />





If you want to have the sliders pointing to 0 and 10000 then you can set the following value to the value attribute of Area in VO: 0,10000

And it will look like this when page loads:



----Deepak

No comments:

Post a Comment