2 Replies Latest reply on Oct 29, 2010 9:31 AM by WebTrauma

    TabNavigator with nested NavigatorContent 'includeIn' does not work ?

    WebTrauma Level 1

      I have a 'View Manager' mxml component that assembles my tabs & sub-tabs.


      When I use 'includeIn' at a first level <s:TabNavigatorContent> it works. (see id="ncShowStuff)


      However, when the <s:NavigatorContent> is nested as a sub-tab within an <mx:TabNavigator>, the "includeIn" prevents the sub-tab from being displayed regardless of role/state (see id="tMaintain").


      When I remove the "includeIn" from subTab 'tMaintain', the tab is rendered.


      Is there something I'm missing or is this a bug?


      <s:NavigatorContent x="10" y="2" id="ncShowStuff" tabIndex="2" 
      includeIn="roleUser, roleAdmin, roleSuperAdmin" label="Show Stuff">
                     <mx:TabNavigator id="tnRuleOptions"
                                           x="10" y="2"
                                           width="98%" height="99%">
                              <view:ShowStatus x="10" y="2" id="tShowStatus" skinClass="skins.etzNavigatorContentSkin"/> 
                              <view:Maintain x="10" y="2" id="tMaintain" 
                                  includeIn="roleAdmin, roleSuperAdmin" skinClass="skins.etzNavigatorContentSkin"/>    


      & here is the header of the 'Maintain' tab mxml :


      <?xml version="1.0" encoding="utf-8"?>
      <s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009" 
                               xmlns:model="model.*" xmlns:service="service.*"
                               currentState="normal" xmlns:components="components.*">