title: Why does ListDataModel not work with a bounded type parameter?
body: <p>I just tried to create a <a href="http://download.oracle.com/javaee/6/api/javax/faces/model/ListDataModel.html" rel="nofollow"><code>ListDataModel</code></a> with a bounded type, like this:</p>
  
  <pre><code>DataModel&lt;? extends Foo&gt; model = new ListDataModel&lt;? extends Foo&gt;(fooList);
  </code></pre>
  
  <p>, where <code>fooList</code> is of the type <code>List&lt;? extends Foo&gt;</code>. I get the following error:</p>
  
  <pre><code>unexpected type
    required: class or interface without bounds
    found: ? extends Foo
  </code></pre>
  
  <p>My current workaround is to copy my data into an <code>ArrayList&lt;Foo&gt;</code>, and build a <code>DataModel&lt;Foo&gt;</code> from that, but I would like to know why this is necessary, and if there is any way to make it work?</p>