View's child component is null

Tony Smith's Avatar

Tony Smith

10 Mar, 2011 12:10 AM

I have a List control inside various containers. Its parent class is mediated but when onRegister is called, the mediator is showing the List property as NULL. Not sure why this would be but I am assuming it is a race condition of sorts. I have done this before in other mediators without a problem though. Anyone have any ideas? Thanks.

In the picture, view.addressesList is breaking onRegister because it is NULL.

<s:VGroup

        width="100%">
    <shipping:AddressForm 
            width="100%"
            includeIn="showAddressForm" />

    <s:VGroup 
            width="100%"
            includeIn="showAddressList">
        <s:HGroup 
                width="100%">
            <s:Label 
                    width="30%"
                    text="Address Nickname" />
            <s:Label 
                    width="30%"
                    text="Contact Name" />
            <s:Label 
                    width="40%"
                    text="Address" />
        </s:HGroup>
        <shipping:AddressSelector id="addressesList"
                width="100%"
                itemRenderer="com.verical.checkout.view.renderers.AddressItemRenderer">
            <shipping:layout>
                <s:VerticalLayout />
            </shipping:layout>

        </shipping:AddressSelector>
    </s:VGroup>

    <shipping:CarrierSelector 
            width="300" height="40" />
</s:VGroup>
  1. Tony Smith closed this discussion on 10 Mar, 2011 12:27 AM.

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