myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: how checked a radio from selectOneRadio
Date Tue, 09 Jan 2007 15:55:30 GMT
It should be "getOption" and "setOption"
"getoption" is not a valid Java property syntax.

On 1/8/07, mathias °ö° <Mathias.List@statistik.sachsen.de> 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 °ö° <Mathias.List@statistik.sachsen.de> 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.
>
>

Mime
View raw message