title: Select field in grails workflow
body: <p>I have a problem prefilling a dropdown list in an grails webflow</p>
  
  <p>I have a controller for the webflow</p>
  
  <pre><code> class ClearanceRequestController {
  
  def index() {
      redirect(action: "start")
  }
  
  def startFlow = {
      contact {
          on('next') {
              flow.developer = params.developer
              flow.project = params.project
              flow.projectResponsible = params.projectResponsible
              flow.email = params.email
  
              [flow : flow]
          }.to('application')
          on('cancel').to('finish')
     ...
  </code></pre>
  
  <p>and the view looks like this:
  contact.gsp</p>
  
  <pre><code>  &lt;g:if test="${message}"&gt;
          &lt;div class="message"&gt;${message}&lt;/div&gt;
      &lt;/g:if&gt;
      &lt;g:form action="start" method="post"&gt;
          &lt;div class="dialog"&gt;
              &lt;table&gt;
              &lt;tbody&gt;
               &lt;tr class="prop"&gt;
                      &lt;td valign="top" class="name"&gt;
                          &lt;label for="projectName"&gt;Projekt:&lt;/label&gt;
                      &lt;/td&gt;
                      &lt;td valign="top"&gt;
                          &lt;input type="text" id="projectName" name="project" value="${params.project}" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;g:select name="state" from="${Project?.DIVISION_OPTIONS}" value="${Project?.DIVISION_OPTIONS}"/&gt;
  </code></pre>
  
  <p>This is the Project definition</p>
  
  <pre><code>  class Project {
  
  static DIVISION_OPTIONS = ["A", "B", "C", "D"]
  
  String name
  String division
  
  
  String toString(){
      "$name"
  }
  
  
  static constraints = {
      name(unique: true)
      division(inList: DIVISION_OPTIONS)
  
   }
  }
  </code></pre>
  
  <p>I don't know how to get the data from the constraints. I tried to access </p>
  
  <pre><code> Project.constraints.division.inList 
  </code></pre>
  
  <p>or</p>
  
  <pre><code> Project.DIVISION_OPTIONS
  </code></pre>
  
  <p>but both didn't worked. I assume I have to initialize the Project somewhere and pass it to the contact.gsp, but I don't know how.</p>