<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -234,6 +234,9 @@ view_helper :select_field_view do
   property :sort_key
   property :value_key
   property :empty, :key =&gt; 'emptyName'
+  property :empty_name
+  property :empty_disabled
+  property :empty_value
   property :enabled, :key =&gt; 'isEnabled'
   bind     :objects
   view     'SC.SelectFieldView'</diff>
      <filename>lib/form_views.rb</filename>
    </modified>
    <modified>
      <diff>@@ -49,11 +49,20 @@ SC.SelectFieldView = SC.FieldView.extend(
   valueKey: null,
 
   /**
-    set this to non-null to place an empty option at the top of the menu.   
+    set this to non-null to place an empty option with this name at the top of
+    the menu.
   */
   emptyName: null,
 
   /**
+    set this to non-null to place an empty option with this value at the top
+    of the menu
+  */
+  emptyValue: null,
+
+  emptyDisabled: false,
+
+  /**
     if true, the empty name will be localized.
   */
   localize: false,
@@ -170,11 +179,27 @@ SC.SelectFieldView = SC.FieldView.extend(
      objects = this.sortObjects(objects) ; // sort'em.
      var html = [] ;       
 
-     var emptyName = this.get('emptyName') ;
-     if (emptyName) {
-       if (shouldLocalize) emptyName = emptyName.loc() ;
-       html.push('&lt;option value=&quot;***&quot;&gt;%@&lt;/option&gt;'.fmt(emptyName)) ;
-       html.push('&lt;option disabled=&quot;disabled&quot;&gt;&lt;/option&gt;') ;
+     var emptyName = this.get('emptyName');
+     var emptyValue = this.get('emptyValue');
+     var emptyDisabled = this.get('emptyDisabled');
+     
+     if (emptyName != null || emptyValue != null) {
+         if (emptyName != null ) {
+            if (shouldLocalize) emptyName = emptyName.loc() ;
+         } else {
+             emptyName = '';
+         }
+
+         if (emptyValue == null) {
+            emptyValue = '';
+         }
+
+         if (emptyDisabled) {
+            emptyDisabled = 'disabled=&quot;disabled&quot; ' ;
+         } else {
+             emptyDisabled = ' ';
+         }
+       html.push('&lt;option %@value=&quot;%@&quot;&gt;%@&lt;/option&gt;'.fmt(emptyDisabled,emptyName,emptyValue)) ;
      }
 
      // generate option elements.</diff>
      <filename>views/field/select_field.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dc1026f62a3f3a57f19fc7501eece67f18444450</id>
    </parent>
  </parents>
  <author>
    <name>M Nikolas Guymon</name>
    <email>zinger@megatron.(none)</email>
  </author>
  <url>http://github.com/mguymon/sproutcore/commit/9e6ca6e60eb7fcd8ccd00422f2bcb1b189cc54a9</url>
  <id>9e6ca6e60eb7fcd8ccd00422f2bcb1b189cc54a9</id>
  <committed-date>2008-12-01T21:38:42-08:00</committed-date>
  <authored-date>2008-12-01T21:11:33-08:00</authored-date>
  <message>Add emptyName, emptyValue, and emptyDisabled to select_field</message>
  <tree>f0094eb76fd6412a50a0a1ba853cfa79d709f86a</tree>
  <committer>
    <name>M Nikolas Guymon</name>
    <email>zinger@megatron.(none)</email>
  </committer>
</commit>
