May 2015
Beginner to intermediate
412 pages
8h 44m
English
The input component spinner provides a numerical input via increment and decrement buttons.
A basic definition of the component would be as follows:
<p:spinner value="#{spinnerBean.intValue}" />This will render an input textbox on the page, with controls to increase and decrease the value as shown in the following screenshot:
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="#{spinnerBean.doubleValue}" stepFactor="0.5" ...Read now
Unlock full access