title: field:select with a static List in Spring Roo
body: <p>Hy everyone.</p>
  
  <p>I have a simple problem here.
  in my order class i have OrderStatus field, which is an enum in the database. (Can be "Under process" or Dispatched)</p>
  
  <p>My problem is when im using update.jspx i want a field:select dropdown list, where the admin can change this value.</p>
  
  <p>Because these values can not be read out from database, i was thinking of creating a static arraylist inside order.java like this:</p>
  
  <pre><code>public static List&lt;String&gt; StatusList;
  static{
    ArrayList&lt;String&gt; tmp = new ArrayList&lt;String&gt;();
    tmp.add("Under process");
    tmp.add("Dispatched");
    StatusList = Collections.unmodifiableList(tmp);
  }
  
  
  public List&lt;String&gt; getStatusList() {
      return StatusList;
  }
  </code></pre>
  
  <p>How can i read out these value using field:select tag, and set them as orderStatus?</p>
  
  <pre><code>&lt;field:select field="orderStatus" id="c_photostore_Porder_orderStatus" items="${porders}" itemValue="orderStatusList" path="/porders"/&gt;
  </code></pre>
  
  <p>if i could call a method from update.jspx would be fine also i think, but i know the syntax only in webflow, not in standard roo.</p>