p:spinner only step - no manuell input
Posted: 27 Apr 2011, 16:38
Hello,
Is it possible to force using only the up and down buttons of the p:spinner component?
I want to ensure that the value is only from start value (min) up to n-times the step e.g. min=0 max=30 step=10 only 0,10,20,30 should be accepted with no change of manuell input of the user via the textfield.
I know that I could use a validator but I even don't want to give the change to try a non valid input.
Is it possible to force using only the up and down buttons of the p:spinner component?
I want to ensure that the value is only from start value (min) up to n-times the step e.g. min=0 max=30 step=10 only 0,10,20,30 should be accepted with no change of manuell input of the user via the textfield.
I know that I could use a validator but I even don't want to give the change to try a non valid input.