title: Data binding to an enum on a command in Grails
body: <p>I have a class:</p>
  
  <pre><code>class User {
      Set&lt;Foo&gt; foos = []
  }
  </code></pre>
  
  <p>where <code>Foo</code> is an enum:</p>
  
  <pre><code>class Foo { A, B, C, D}
  </code></pre>
  
  <p>I have a controller action with a parameter of type <code>User</code></p>
  
  <pre><code>def someAction = {User user -&gt;
      // impl omitted   
  }
  </code></pre>
  
  <p>I've created a multi-select in a GSP</p>
  
  <pre><code>&lt;g:select name="foos" multiple="true" from="${Foo.values()}"/&gt;
  </code></pre>
  
  <p>But when I submit the form the selected values do not get bound to the <code>foos</code> property of the <code>User</code> command object. What am I doing wrong?</p>