Java – Read-only spinner

Read-only spinner… here is a solution to the problem.

Read-only spinner

I’m learning JSF. Is there any way to make the spinner read-only? I should just use the spinner instead of typing the number directly to change the value. Can I do this by setting properties in the spinners.tld file?

Best Solution

Disabling the text field portion of the spinner control is a usability disaster. Please do not do this. Some of us really want to enter the number.

Related Problems and Solutions