title: Core Java Faces - 3rd edition (Cay Horstmann) : Chapter 4 selection tags pg 165 example not working
body: <p>I'm not sure how i should put this question cos' there are couple of files (.java, .xhtml, etc) involved. Anyway this programs involves couple of checkboxes (selectmanycheckbox) and others. There is a onchange=submit() on this selectmanycheckboxes.</p>
  
  <p>Here's what i noticed:</p>
  
  <ol>
  <li>The generated html for each of those checkboxes there is a onchange=submit(). Kind of funny that by checking a checkboxes, it is submitting the form everytime.</li>
  </ol>
  
  <p>The real issue is when i check one of the checkboxes, there is an error exactly as printed.</p>
  
  <p>======================================================================
  java.lang.ClassCastException: [I cannot be cast to [Ljava.lang.Object;</p>
  
  <p>Caused by:
  java.lang.ClassCastException - [I cannot be cast to [Ljava.lang.Object;</p>
  
  <p>I don't understand the [I here. Any idea?</p>
  
  <p>What i did after that was to remove all the checkboxes and submit the form. Still getting the same error.</p>
  
  <p>Any idea?</p>