Correct, however, if you use a simple string for the id, repeater will
automatically build an indexed array of references to the component.
Example:

<mx:RadioButtonGroup id="rb"...

 

You can access the individual instances using rb[n], where "n" is iht
index of the dataProvider item.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Haykel BEN JEMIA
Sent: Saturday, September 06, 2008 11:40 AM
To: [email protected]
Subject: Re: [flexcoders] Dynamic ID RadioButtonGroup

 

The "id" property does not support binding and it should not contain any
white space or special characters.



On Sat, Sep 6, 2008 at 1:22 PM, Eugene Louw <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

Hi All,

 

I'm trying to create multiple RadioButtonGroup(s) with the following
code,

 

<mx:Repeater id="radioGroupRepeater"
dataProvider="{ModelLocator.getInstance().options}">

                        <mx:RadioButtonGroup
id="{radioGroupRepeater.currentItem.handle}" labelPlacement="left" />

</mx:Repeater>

 

But I'm getting the following error,

 

'{radioGroupRepeater.currentItem.handle}' is not a valid identifier.


 

Thanks for the help,


-- 
------------------------------------------------
Eugene Louw
------------------------------------------------

 

 

Reply via email to