Hi all,
It would be great to have IDs and databinding available to faceless
data structures.
Unfortunately, there are some restrictions that apply to faceless components.
Is there any (hacky) way to declare a nested faceless component in an
MXML document and assign a document scoped ID to it ??
This is not legal as there are IDs in the nested components.
<c:Person id="foo">
<c:children>
<mx:Array>
<c:Person id="barbie"/>
<c:Person id="birbie"/>
</mx:Array>
</c:children>
</c:Person>
One ugly way would be to extend a container and do something like the following
<c:Person id="foo">
<c:Person id="barbie"/>
<c:Person id="birbie"/>
</c:Person>
Now, this limits me to assigning all children to one array... not to
mention the overhead and component-lifecycle-related trouble.
For now the only legal solution is the following I guess...
<c:Person id="foo"/>
<c:Person id="barbie" parent="{foo}"/>
<c:Person id="birbie" parent="{foo}"/>
Evidently the benefit of using XML is lost.
Any ideas?
--
::::: Aldo Bucchi :::::
mobile (56) 8 429 8300
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/