This content has been marked as final.
Show 2 replies
-
1. Re: rich:InputNumberSpinner
kragoth Aug 3, 2011 8:13 PM (in response to srinu494u)This is kinda hacky but it sorta works. Disregard the javascript if you don't need the increment to go 01, 02, 03 etc.
I'm sure there's a better way of doing this but I didn't have enough time to investigate anymore. Oh if 01,02 don't work when you submit the page you may need to write your own converter too.
<rich:inputNumberSpinner id="numSpin" minValue="00" value="00" step="1" onchange="updateSpinnerValue(this);"/> <script> function updateSpinnerValue(element) { var input = element.spinner.content.firstChild; if (input.value.length == 1) { input.value = "0"+input.value; } } </script>
-
2. Re: rich:InputNumberSpinner
srinu494u Feb 16, 2012 6:18 AM (in response to kragoth)thanks for giving reply it works fine............