2 Replies Latest reply on Aug 21, 2010 12:23 PM by Shongrunden

    mx:List vs s:List with HTTPService + e4x

    thebouv Level 2

      I have a pretty simple app that is loading an xml file (HTTPservice named configXML) and is trying to bind it to a List.  No errors or warnings are produced.

       

      <s:List labelField="@name" dataProvider="{configXML.lastResult.template}"/> shows a list control with nothing in it, but

       

      <mx:List labelField="@name" dataProvider="{configXML.lastResult.template}"/> works exactly as it should.

       

      The configXML file is as such:

       

      <?xml version="1.0"?>
      <templates>
          <template name='My Template' source='assets/myImage.png'/>
      </templates>

       

      If I provide hardcoded data to s:List with a nested <dataProvider> tag, it shows data.  But why can't I just pass in {configXML.lastResult.template}?  What's the Flex 4 trick to doing this?