I do this normaly by using a bean which has access to the radio button values and provides the action method implementation as you mentioned.
So you have: rootbean.radio1, rootbean.radio2 ... properties and rootbean.processAction for the action binding. The implementation is quite easy and requires only a single bean. Mathias > -----Original Message----- > From: Sean Schofield [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 07, 2005 5:05 PM > To: MyFaces Discussion > Subject: Re: Need suggestion for radio navigation > > > 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>: > > > 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 > > > > > >