0.9.0 version of PrimeFaces introduces a new spinner component. Spinner uses increment and decrement buttons to provide a numerical input.
Integers
In it’s simplest form spinner steps by 1 so it’s suitable for integer values.
<p:spinner value="#{bean.number}" />
Decimals
Floating numbers are also supported using the stepFactor attribute. Following spinner will increment or decrement by 0.25.
<p:spinner value="#{bean.number}" stepFactor="0.25"/>
Online Demo
See the online demo for the examples I’ve given here in action.

June 17, 2009 at 9:01 pm
does adding a validator / converter work ?
Like displaying the actual number as percentage ?
June 17, 2009 at 11:08 pm
Never tried but it should