Read only spinner

I study Jsf.Is there any method for reading spinners? I should change the value only using spinners, and not directly dial the number. Can this be realized by setting the attribute in the spinners.tld file?

+3
source share
2 answers

With JSF2.0, you can write your own JNF-spinner component , except that instead of using:

 <h:inputText id="number" value="#{compositeComponent.attrs.value}"/>

(which is an input field for reading and writing ), you could useoutputLabel :

<h:outputLabel for="number" value="#{compositeComponent.attrs.value}"/>

which means achieving exactly what you need.

. a outputText .

JSF2.0 PR (Public Review).
, " " JSF , . JSF 2.0 , .

+1

- . , . .

+3

All Articles