Further, for all but the simplest of repeated controls, create a custom component, and repeat that. This way, all internal coding will be ordinary, including id references.
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Tuesday, September 16, 2008 5:29 PM To: [email protected] Subject: [flexcoders] Re: RadioButtonGroup id not settable using repeater index... --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Durres76" <[EMAIL PROTECTED]> wrote: > > hey, > i'm generating radio button groups using a repeater, but am getting > errors when trying to set the id of RadioButtonGroup using the > repeater index. The code is below. How else can you generate multiple > groups dynamically > > <Repeater id="rpt"> > <RadioButtonGroup id="{rpt.currentIndex}"> > some Radio buttons. > </RadioButtonGroup> > </Repeater> > > Thanks, > d > Just use something like <RadioButtonGroup id="group"> Then group[0] will refer to the first one, group[1] will refer to the second one, etc. This is pretty thoroughly documented in the docs for repeater. HTH; Amy

