Mediator is not created for "inline" mxml defined item renderer (Flex Spark)
When trying to define item renderer in place using mxml (I'm
doing it this way to bind currentState):
<s:DataGroup
<s:itemRenderer>
<fx:Component>
<views:InGameScoreboardItem currentState="{outerDocument.currentState}"/>
</fx:Component>
</s:itemRenderer>
</s:DataGroup>
mediator for InGameScoreboardItem is not created. If you define
itemRenderer using attribute it works fine:
<s:DataGroup itemRenderer="InGameScoreboardItem"/>
Can anyone give a hint on what happens in Flex part? Or is it somehow Robotlegs bug? Thanks.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Ondina D.F. on 20 Jan, 2014 05:37 PM
Hi Pavel,
I've just tried both your options, and they work well on my end, meaning the itemrenderer's mediator is created. So, robotlegs is doing fine. There must be something else going wrong. The way you map them?
Do you know that having mediators for item renderers is not a good idea? ;)
Ondina
Ondina D.F. closed this discussion on 28 Apr, 2014 08:09 AM.