1 Reply Latest reply on Jun 22, 2011 12:44 PM by paleti.suresh

    Help with error

    Zolotoj Level 3

      What exactly that means?

       

      Type 'spark.components.BorderContainer' is not assignable to the default property, 'dataProvider'', of type 'mx.collections.IList'.

       

      Thanks

        • 1. Re: Help with error
          paleti.suresh

          it seems like you are trying to do like this (if so you cannot place the border container inside, just wrap the list inside the border container tag, I dont know why you want a border for list, it already has one right)

          Wrong:

          <s:List id="myList">
                  <s:dataProvider>
                     
                       <s:BorderContainer>
                      <s:ArrayCollection>
                         
                      </s:ArrayCollection>
                      </s:BorderContainer>
                  </s:dataProvider>
              </s:List>

           

          Correct:

           

          <s:BorderContainer>

          <s:List id="myList">
                   <s:dataProvider>
                       <s:ArrayCollection>
                          
                       </s:ArrayCollection>
                   </s:dataProvider>
               </s:List>

          </s:BorderContainer>