You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Sean Schofield <se...@gmail.com> on 2005/07/07 16:46:39 UTC
Need suggestion for radio navigation
I'm working on a dialog where the user has a few choices. There is a
single OK button and the user has to choose which option they want
from a list of radio buttons. What are some possible ways to do this?
My current thinking is to have the action attribute of the
commandButton use a method binding of a managed bean. But then there
is the matter of obtaining the values of the radio buttons. I suppose
I could bind the radio buttons to the bean that is determing the
action value ... There are a lot of possibilities here but I'm trying
to find the most elegant ;-)
sean
Re: Need suggestion for radio navigation
Posted by Sean Schofield <se...@gmail.com>.
That's basically what I was thinking. I will go with that but I'm
still interested in other suggestions (or criticims of this approach.)
Thanks,
sean
On 7/7/05, Bruno Aranda <br...@gmail.com> wrote:
> For this, I normally use a valueChangeListener for the radio list
> binded to a backing bean method. This method sets the new value in an
> attribute of the bean. The method executed by the OK button uses this
> value and does some logic with it...
>
> Regards,
>
> Bruno
>
> 2005/7/7, Sean Schofield <se...@gmail.com>:
> > I'm working on a dialog where the user has a few choices. There is a
> > single OK button and the user has to choose which option they want
> > from a list of radio buttons. What are some possible ways to do this?
> >
> > My current thinking is to have the action attribute of the
> > commandButton use a method binding of a managed bean. But then there
> > is the matter of obtaining the values of the radio buttons. I suppose
> > I could bind the radio buttons to the bean that is determing the
> > action value ... There are a lot of possibilities here but I'm trying
> > to find the most elegant ;-)
> >
> > sean
> >
>
Re: Need suggestion for radio navigation
Posted by Bruno Aranda <br...@gmail.com>.
For this, I normally use a valueChangeListener for the radio list
binded to a backing bean method. This method sets the new value in an
attribute of the bean. The method executed by the OK button uses this
value and does some logic with it...
Regards,
Bruno
2005/7/7, Sean Schofield <se...@gmail.com>:
> I'm working on a dialog where the user has a few choices. There is a
> single OK button and the user has to choose which option they want
> from a list of radio buttons. What are some possible ways to do this?
>
> My current thinking is to have the action attribute of the
> commandButton use a method binding of a managed bean. But then there
> is the matter of obtaining the values of the radio buttons. I suppose
> I could bind the radio buttons to the bean that is determing the
> action value ... There are a lot of possibilities here but I'm trying
> to find the most elegant ;-)
>
> sean
>