1 Reply Latest reply on Jun 15, 2006 3:36 PM by Newsgroup_User

    Tab Navigator Error

    is2
      Found a problem when submitting a textinput field from a canvas on a TabNavigator. Problem only occurs when you do not go to the tab when viewing on screen before submitting the TextInput.text

      This is the error.
      TypeError: Error #1009: Cannot access a property or method of a null object reference.

      If you click on the tab, view the contents of whatever and then submit, there is no error. If you do NOT click on the tab, then the error occurs. Seems like it does not create the tab until you view it. Which would not seem correct. Think of the case of entry screens where you have 3 or 4 or more tab sections on the screen.

      Thanks.
      Bill Brittain

        • 1. Re: Tab Navigator Error
          Level 7
          Hi Bill,
          > Found a problem when submitting a textinput field from a canvas on a
          > TabNavigator. Problem only occurs when you do not go to the tab when viewing
          > on screen before submitting the TextInput.text
          >
          > This is the error.
          > TypeError: Error #1009: Cannot access a property or method of a null object
          > reference.
          >
          > If you click on the tab, view the contents of whatever and then submit, there
          > is no error. If you do NOT click on the tab, then the error occurs. Seems
          > like it does not create the tab until you view it. Which would not seem
          > correct. Think of the case of entry screens where you have 3 or 4 or more tab
          > sections on the screen.

          Try setting creationPolicy="all" on the TabNavigator. By default,
          creationPolicy is set to "auto", which means the TabNavigator only
          creates the children of the initially visible pane on startup--this is
          to make startup faster. In your case, since you need to access children
          of the hidden tabs regardless of whether the user visits them, you
          should use creationPolicy="all".

          --
          nj
          Flex Builder team