ok,
but its not the reason it does not work.
which I must do that the value from java bean transferred to jsf ?
best regards
mathias °ö°
Andrew Robinson-5 wrote:
>
> It should be "getOption" and "setOption"
> "getoption" is not a valid Java property syntax.
>
> On 1/8/07, mathias °ö° <[EMAIL PROTECTED]> wrote:
>>
>> hi Andrew Robinson
>> thanks for your answer
>>
>> but it doesnt work
>> here ist the back bean:
>>
>> public class OneRadio {
>>
>> String option = "yes";
>>
>> public String getoption() {
>> return option;
>> }
>>
>> public void setoption(String option) {
>> this.option = option;
>> }
>> }
>>
>> best regards
>> mathias °ö°
>>
>>
>> Andrew Robinson-5 wrote:
>> >
>> > in your example #{oneradio.option} must evaluate to "yes" in order for
>> > the "yes" radio button to be checked when the page is rendered.
>> >
>> > On 1/8/07, mathias °ö° <[EMAIL PROTECTED]> wrote:
>> >>
>> >> hi all
>> >>
>> >> how checked a radio from selectOneRadio by open the page
>> >>
>> >> <h:selectOneRadio id="selectOneRadio_ure" layout="lineDirection"
>> >> value="#{oneradio.option}" required="true" immediate="true" >
>> >> <f:selectItem itemValue="yes" itemLabel="yes" id="ure_yes" />
>> >> <f:selectItem itemValue="no" itemLabel="no" id="ure_no" />
>> >> </h:selectOneRadio>
>> >>
>> >> the selectItem "yes" should checked radio by open the page
>> >>
>> >> thanks
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/how-checked-a-radio-from-selectOneRadio-tf2939833.html#a8219417
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-checked-a-radio-from-selectOneRadio-tf2939833.html#a8232631
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/how-checked-a-radio-from-selectOneRadio-tf2939833.html#a8252646
Sent from the MyFaces - Users mailing list archive at Nabble.com.