But how would I bind radiogroups to a model if they wont have "visible" ids?
On Sat, Oct 12, 2013 at 12:18 AM, Alex Harui <[email protected]> wrote: > Binding is internal to a set of instances in an MXML instance. > FocusManager looks everywhere. So unfortunately, that means you can't use > MXML as a template for stamping out copies of radiobuttons. > > I would use groupName and set it somehow. > > -Alex > ________________________________________ > From: mark goldin [[email protected]] > Sent: Friday, October 11, 2013 2:18 PM > To: users > Subject: RadioButtonGroup > > I am using the following design pattern from docs for all > RadioButtonGroups: > > <fx:Declarations> > <s:RadioButtonGroup id="cardtype" > itemClick="handleCard(event);"/> > </fx:Declarations> > > <s:VGroup> > <s:RadioButton group="{cardtype}" > id="americanExpress" > label="American Express" > width="150"/> > <s:RadioButton group="{cardtype}" > id="masterCard" > label="MasterCard" > width="150"/> > <s:RadioButton group="{cardtype}" > id="visa" > label="Visa" > width="150"/> > </s:VGroup> > > It all works fine. But here is a problem. It looks like if the same id > is used on different screens then it's going to be the at run time > which causes problems with tabbing. If I tab from a RadioButtonGroup > to another control but somewhere on the screen there is another > RadioButtonGroup the control goes to that RadioButtonGroup. I am also > not sure how binding is working either since it's the same id that a > mode property is bound to. But two different controls. Any thoughts? >
