p:spinner - Is it possible to disable manual input? That is force the user to enter value only using the increment and decrement buttons.
(In slider we can set the inputText associated to readonly and it works well. )
p:spinner - Is it possible to disable manual input
PrimeFaces 3.4, Seam Faces 3.0.2.Final, Glassfish v3.1, Mojarra 2.1.10, NetBeans 7.2, Hibernate JPA 2.0, Seam Persistence 3.0.0.Final Theme default HOT-SNEAKS
What about disabled attribute?If it's disabling manual input and spinner buttons also then you can raise a request for readOnlyInput attibute just like p:calendar.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
Did you try with disabled="true" attribute?
In p:calender component we can prevent manual data entry in input box using readOnlyInput="true"
In p:calender component we can prevent manual data entry in input box using readOnlyInput="true"
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
If I use readonly="true", neither the input or the spinner buttons works. Using disabled="true", the spinner is all disabled (opaque). I don't see an attribute readOnlyInput on p:spinner.
What I want is only the input to not be enabled, but the spinner buttons have to work.
Thanks!
What I want is only the input to not be enabled, but the spinner buttons have to work.
Thanks!
NetBeans 7.1.2 - Mojarra 2.1.11 - PrimeFaces 3.3.1 - PrimeFaces Extensions 0.5.1 - Apache Tomcat 7.0.29 - Hibernate 4.1.4-Final - MySQL 5.5
Yes, i know.We don't have readOnlyInput attribute for p:spinner so i advised you raise a request in issuetracker
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
NetBeans 7.1.2 - Mojarra 2.1.11 - PrimeFaces 3.3.1 - PrimeFaces Extensions 0.5.1 - Apache Tomcat 7.0.29 - Hibernate 4.1.4-Final - MySQL 5.5
-
- Posts: 1
- Joined: 14 Dec 2012, 21:50
The easier way to do it:
<p:spinner onkeypress="return false">
That's all... spinner will keep working but manual input will not...
<p:spinner onkeypress="return false">
That's all... spinner will keep working but manual input will not...
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests