title: XTemplate and DataView displaying nothing
body: <p>I need your help with my DataView and a XTemplate. No matter what I am trying, I am stuck in this problem, that the DataView is displaying nothing...
  The json data seems ok to me and it is coming from the Spring MVC server side.
  Here is an example of the retrieved data:</p>
  
  <pre><code>[
    {
      "id":58987552,
      "objectId":47841258,
      "type":"T1",
      "category":"FILE",
      "fileName":"file_9858585555_1",
      "extension":"pdf",
      "size":14397354,
      "version":34,
      "deleted":0,
      "locked":0},...
    }
  ]
  </code></pre>
  
  <p>For me it is looking like valid JSON data. Right?
  This is my Extjs code:</p>
  
  <pre><code>Ext.require(['*']);
  
  Ext.onReady(function(){
  createStores();
  
  var dataView = Ext.create('Ext.view.View', {
      store: Ext.data.StoreManager.lookup('store'),
      tpl: [
        '&lt;tpl for="."&gt;',
          '&lt;tpl switch="extension"&gt;',
              '&lt;tpl case="pdf" case="PDF"&gt;',
                  '&lt;div class="thumb"&gt;&lt;img src="/site/resources/images/32/pdf32.png"/&gt;&lt;/div&gt;',
                  '&lt;div class="thumb-wrap" id="{fileName}.{extension}"&gt;',
                  '&lt;div class="x-clear"&gt;&lt;/div&gt;',
              '&lt;tpl case="xlsx" case="xls"&gt;',
                  '&lt;div class="thumb"&gt;&lt;img src="/site/resources/images/32/xlsx32.png"/&gt;&lt;/div&gt;',
                  '&lt;div class="thumb-wrap" id="{fileName}.{extension}"&gt;',
                  '&lt;div class="x-clear"&gt;&lt;/div&gt;',
              '&lt;tpl case="ppt" case="pptx"&gt;',
                  '&lt;div class="thumb"&gt;&lt;img src="/site/resources/images/32/pptx32.png"/&gt;&lt;/div&gt;',
                  '&lt;div class="thumb-wrap" id="{fileName}.{extension}"&gt;',
                  '&lt;div class="x-clear"&gt;&lt;/div&gt;',
              '&lt;tpl case="zip" case="7z"&gt;',
                  '&lt;div class="thumb"&gt;&lt;img src="/site/resources/images/32/zip32.png"/&gt;&lt;/div&gt;',
                  '&lt;div class="thumb-wrap" id="{fileName}.{extension}"&gt;',
                  '&lt;div class="x-clear"&gt;&lt;/div&gt;',
              '&lt;tpl case="msg"&gt;',
                  '&lt;div class="thumb"&gt;&lt;img src="/clarity/resources/images/32/msg32.png"/&gt;&lt;/div&gt;',
                  '&lt;div class="thumb-wrap" id="{fileName}.{extension}"&gt;',
                  '&lt;div class="x-clear"&gt;&lt;/div&gt;',
              '&lt;tpl case="rtf" case="doc" case="docx"&gt;',
                  '&lt;div class="thumb"&gt;&lt;img src="/site/resources/images/32/docx32.png"/&gt;&lt;/div&gt;',
                  '&lt;div class="thumb-wrap" id="{fileName}.{extension}"&gt;',
                  '&lt;div class="x-clear"&gt;&lt;/div&gt;',
          '&lt;/tpl&gt;',
       '&lt;/tpl&gt;'
      ],
      multiSelect: false,
      height: 400,
      trackOver: true,
      overItemCls: 'x-item-over',
      itemSelector: 'div.thumb-wrap',
      emptyText: 'No images available',
  });
  
  Ext.create('Ext.Panel', {
          id: 'fileBrowser',
          frame: true,
          collapsible: true,
          width: 535,
          items: dataView,
          renderTo: 'documentViewPanel'
  });
  });
  </code></pre>
  
  <p>My stroe code:</p>
  
  <pre><code>var documentStore = null;
  
  function createDocumentStores() {
  var documentProxy = new Ext.data.HttpProxy({
      type : 'ajax',
      url : applicationPath + '/documentViewer/getWorkorders',
      reader : {
          type : 'json',
          idProperty : 'id'
      }
  });
  
  documentStore = Ext.create('Ext.data.Store', {
      model : 'DocumentModel',
      storeId : 'documentStore',
      proxy : documentProxy,
      autoLoad : true
  });
  }
  </code></pre>
  
  <p>I am not sure what's wrong with the code, but the data isn't displayed in the DataView.
  In my oppinion the for loop in the tpl wasn't entered. But I am not sure why.
  Please help me, I am at my wit'sa end and I am desperating on this XTemplat mechanism.
  Every help is very appriciated.</p>
  
  <p>Best regards and have a nice day.</p>