Grails+Javaskript using Set, List
<p>i just want to iterate over a List or a Set from Data of my DomainModel.</p>

<pre><code> for(var report in ${reportInstanceList.toSet()}) {

       var postalcode= report.postalcode;
       alert(postalcode);

     }
</code></pre>

<blockquote>
  <p>But i get always from Mozilla:
      "missing ] after element list"  ----><br>
      "for(var report in [fire.report : 4, fire.report : 1, fire.report : 5, fire.report :  2, fire.report : 3]) {..."</p>
  
  <p>from Opera: 
      "Syntax error at line 18 while loading: syntax error
      t in [fire.report : 1, fire.report :
  --------------------^"</p>
  
  <p>I tried also with toList(). And i tried another syntax, like :
      '${reportInstanceList.toSet()}'
      "${reportInstanceList.toSet()}"</p>
  
  <p>But it dont work, it must be a little problem but i dont get it...</p>
</blockquote>

<p>Thanks</p>
