How to use Primefaces slider component with decimal values?
Posted
by
Ioan
on Stack Overflow
See other posts from Stack Overflow
or by Ioan
Published on 2013-11-06T20:07:44Z
Indexed on
2013/11/06
21:54 UTC
Read the original article
Hit count: 1079
jsf-2
|primefaces
I am using JSF 2.2
, Primefaces 4.0
, and I am using slider
component from Primefaces
.
<p:slider displayTemplate="Between {min} and {max}" minValue="20" maxValue="40" step="1"/>
I would like to ask you if is possibile to have step
as decimal
value. E.g. step="0.1"
, or perhaps some ideas about how to solve this issue.
I have tried but I'm getting errors like :
javax.el.ELException: Cannot convert 0.1 of type class java.lang.String to int] with root cause
Thank you.
© Stack Overflow or respective owner