Error
Settings are as follows:
dataprovider is an ArrayCollection.
Error on fill is:
ReferenceError: Error #1069: Property invalidBranch not found on entity.AppSecurityItemRoleRel and there is no default value.
at com.teotiGraphix.controls.checkBoxTreeClasses::CheckBoxTreeDataDescriptor/isInvalidBranch()
at com.teotiGraphix.controls.checkBoxTreeClasses::CheckBoxItemRenderer/com.teotiGraphix.controls.checkBoxTreeClasses:CheckBoxItemRenderer::commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateClient()
at mx.controls::List/mx.controls:List::makeRowsAndColumns()
at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDisplayList()
at mx.controls::List/mx.controls:List::updateDisplayList()
at mx.controls::Tree/mx.controls:Tree::updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
If I add invalidBranch to my source class the list then loads but then errors (though record is updated OK) when I check/uncheck and item:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.teotiGraphix.controls::CheckBoxTreeFX/com.teotiGraphix.controls:CheckBoxTreeFX::_getParentItem()
at com.teotiGraphix.controls::CheckBoxTreeFX/com.teotiGraphix.controls:CheckBoxTreeFX::reverseValidateItem()
at com.teotiGraphix.controls::CheckBoxTreeFX/toggleItem()
at com.teotiGraphix.controls::CheckBoxTreeFX/::this_checkClickHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.teotiGraphix.controls.checkBoxTreeClasses::CheckBoxItemRenderer/::checkButton_clickHandler()
Hi,
This error is due to the fact I didn't think about the pitfalls of adding an extraneous property to the model. This was my design flaw.
This is a bug, and I will see about getting it fixed within a week.
See; http://www.teotigraphix.com/node/342
Mike

Joined: 2008-02-25