title: JSF 2.0: why my selectManyListbox value is not valid
body: <p>In my ManagedBean, I have the following property:</p>
  
  <pre><code>@ManagedBean
  @RequestScoped
  public class MrBean {
      ...
      private long[]  IDs;
      private List&lt;Item&gt; items;
      ...
  }
  </code></pre>
  
  <p>In my .xhtml file, I have the following select many box:</p>
  
  <pre><code>&lt;h:selectManyListbox label="abc" 
      id="abc" size="5" value="#{MrBean.IDs}"&gt;
      &lt;f:selectItems value="#{MrBean.items}" var="i" 
          itemLabel="#{i.name}" itemValue="#{i.id}" /&gt;
  &lt;/h:selectManyListbox&gt;
  &lt;h:message styleClass="errorMsg" for="abc" /&gt;
  </code></pre>
  
  <p>The id of my items are long numbers. Hence, I expected that I would get a list of IDs chosen. However, when I submit the form, <code>abc: Validation Error: Value is not valid</code> appears in the message part for my list box. </p>
  
  <p>Can someone please tell what I have done wrong here?</p>
  
  <p>Best regards,
  James Tran</p>