Setting myClass.absentMotive to value of motive4 in your bean should work.
Make sure the values of your radio buttons and your bean attribute match up
correctly.
You can also set default property values as an attribute to your managed-bean
element in your faces-config.
Hope this helps.
> -------Original Message-------
> From: [EMAIL PROTECTED]
> Subject: selectOneRadio
> Sent: 01 Oct '06 20:32
>
> Hi!
>
> I am using a selectOneRadio list displayed on my jsp page but I would like
> only to display this list with a default selected value. For example I would
> like to display the following list:
>
> Motive1
> Motive2
> Motive3
> X Motive4
> Motive5
>
> And I want Motive4 to be selected and not be able to change this selection.
> I was thinking to give the value Motive4 to Myclass.absenceMotive but then
> nothing is selected in my page, what can I do to do that?
>
> <h:selectOneRadio value="#{Myclass.absenceMotive}" layout="pageDirection"
> disabled="true"
> <f:selectItems value="#{Myclass.absenceMotives}" />
> </h:selectOneRadio>
>
> Thanks
>
>