0

i have the following jsf code:

<h:selectOneRadio value="#{ref.arrive.boardingInformation}">
      <f:selectItems value="#{newMessage.boardingInformationSelectItemList}" />
</h:selectOneRadio>

Is it possible to freeze this kind of selectradiobutton in that way, that my user can´t change the value?

This radiobuttons are only for reading and not for writing or changing.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • 1
    possible duplicate of [Disable User Selection in ](http://stackoverflow.com/questions/7496859/disable-user-selection-in-hselectoneradio) – Aritz Aug 21 '13 at 09:44

1 Answers1

0

Try this:

<h:selectOneRadio value="#{ref.arrive.boardingInformation}" disabled="true">
      <f:selectItems value="#{newMessage.boardingInformationSelectItemList}" />
</h:selectOneRadio>

Here are the available properties: http://www.tutorialspoint.com/jsf/jsf_selectoneradio_tag.htm

Robert M.
  • 1,339
  • 1
  • 12
  • 34
  • Might not work in all browsers, IE 7 doesn't support that as far as I remember – noone Aug 21 '13 at 09:33
  • 2
    Please refer the official documentation instead of a 3rd party site which contains potentially bad/misleading content. Here's the official documentation: http://docs.oracle.com/javaee/6/javaserverfaces/2.1/docs/vdldocs/facelets/h/selectOneRadio.html – BalusC Aug 21 '13 at 12:50