January 2013
Intermediate to advanced
328 pages
7h 14m
English
spinner is an input component that provides a numerical input via increment and decrement buttons.
A basic definition of the component would be as follows:
<p:spinner value="#{spinnerController.intValue}" />This will render an input text box on the page, with controls to increase and decrease the value.
The stepFactor attribute defines the stepping factor that will be applied for each increment and decrement with the default value 1. The following definition will increase or decrease the value by 0.5.
<p:spinner value="#{spinnerController.doubleValue}" stepFactor="0.5" />Read now
Unlock full access