title: Passing the List of primitive type objects as datasource for subreport
body: <p>I need to pass to my subreport a <em>dataSource</em> with help of master report's <strong><em><code>List&lt;String&gt;</code></em></strong> parameter. I don't know what is a type of <em>dataSource</em> is correct and how to get value in subreport. </p>
  
  <p>The snippet from my master report:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;parameter name="seznamPriloh" class="java.util.List" isForPrompting="false"/&gt;
  ....
  &lt;subreport&gt;
      &lt;reportElement x="0" y="56" width="555" height="76"/&gt;
      &lt;dataSourceExpression&gt;&lt;![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{seznamPriloh})]]&gt;&lt;/dataSourceExpression&gt;
              &lt;subreportExpression&gt;&lt;![CDATA[cz.alis.keong.jasjdr.reporting.ReportCompiler.compile("R79_SeznamPriloh")]]&gt;&lt;/subreportExpression&gt;
  &lt;/subreport&gt;
  </code></pre>
  
  <p>The snippet from my subreport:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;detail&gt;
      &lt;band height="23"&gt;
          &lt;textField&gt;
              &lt;reportElement x="56" y="3" width="100" height="20"/&gt;
              &lt;textElement/&gt;
              &lt;textFieldExpression&gt;&lt;![CDATA[$F{}]]&gt;&lt;/textFieldExpression&gt;
          &lt;/textField&gt;
      &lt;/band&gt;
  &lt;/detail&gt;
  </code></pre>
  
  <p>Please advise me how to pass the datasource to subreport via master report's parameter of <strong><em><code>java.util.List&lt;String&gt;</code></em></strong> type.</p>
  
  <p>Edit: 08.14 14:20
  Add Tags to Java</p>
  
  <p>Edit: 08.14 15:30
  relates with <a href="https://stackoverflow.com/questions/1771864/how-do-i-print-a-list-of-strings-contained-within-another-list-in-ireport">How do I print a list of strings contained within another list in iReport?</a> and works for 4.5.0 And <strong><em><code>List&lt;String&gt;</code></em></strong></p>