I am learning Jsf.Is there any method for making the spinners read only?I should change the value only using spinners and not directly typing the number.Can i implement that by setting attribute in the spinners.tld file?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With JSF2.0, you could write your own spinner JSF component except that, instead of using:
(which is a read-write input box ), you could use a
outputLabel:, hence achieving exactly what you are after.
Note, an
outputTextcould be as effective.JSF2.0 is released in PR (Public Review) mode.
It is worth looking into because one of the ‘pain points’ for JSF has always been the complexity that you face in creating components. In JSF 2.0, creating a new component that’s made up of existing components is a snap.