title: Target model Type is no a Collection or Array
body: <p>Im using JQuery to move the elements (to &amp; fro) between 2 select many list box. Here follows my JQuery code for the same.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  $(document).ready(function() {
      alert('inside function');
      $('#testForm\\:button_add').click(function(e) {
      var selectedOpts = $("#testForm\\:select_from option:selected");
      if (selectedOpts.length == 0) {
      alert("Nothing to move.");
      e.preventDefault();
      }
      $('#testForm\\:select_to').append($(selectedOpts).clone());
      $(selectedOpts).remove();
      e.preventDefault();
      });
      $('#testForm\\:button_remove').click(function(e) {
      var selectedOpts = $("#testForm\\:select_to option:selected");
      if (selectedOpts.length == 0) {
      alert("Nothing to move.");
      e.preventDefault();
      }                                               
      $('#testForm\\:select_from').append($(selectedOpts).clone());
      $(selectedOpts).remove();
      e.preventDefault();
      });
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>And here follows my JSF code:</p>
  
  <pre><code>&lt;td width="40%"&gt;
      &lt;h:selectManyListbox value="#{testListBox.selectManyOptions}" id="select_from" size="5" &gt;
  
      &lt;f:selectItems value="#{testListBox.selectedOptions}" /&gt;
  &lt;/h:selectManyListbox&gt;
  &lt;/td&gt;
  &lt;td&gt;&lt;/td&gt;
  &lt;td width="40%"&gt;
      &lt;h:commandButton value="To" id="button_add"/&gt;&lt;br/&gt;
      &lt;h:commandButton value="From" id="button_remove"/&gt;
  &lt;/td&gt;
  &lt;td&gt;&lt;/td&gt;
  &lt;td&gt;
      &lt;h:selectManyListbox id="select_to" size="5"
                          value="#{testListBox.selectedItems}"&gt;
      &lt;f:selectItems /&gt;
  &lt;/h:selectManyListbox&gt;
  &lt;/td&gt; 
  &lt;td&gt;&lt;/td&gt;
  </code></pre>
  
  <p>And in the page bean I've declared correcponding binding variables as below with respective getters/setters.</p>
  
  <pre><code>private Map&lt;String, Object&gt; selectedOptions;
  private Map&lt;String, Object&gt; selectManyOptions;
  
  private List&lt;SelectItem&gt; selectItems = new ArrayList&lt;SelectItem&gt;();
  private List&lt;String&gt; selectedItems;
  </code></pre>
  
  <p>Now Im getting below error while Im submitting my page.
  "Target model Type is no a Collection or Array"
  Can any one suggest as it is blocking my navigation?
  - Vamsi</p>