     @super()
     
     @_command   = options.command || 'Save Form'
-    @_defaults  = options.default || null
+    @_defaults  = options.defaults || null
     @_fields    = ST.List.create()
     
     if options.scope

    html.join ''
  
  @method 'render', ->
    @_element.html @generateTableHTML()
    
    @_fields.each (field) ->
      cell = $ "#cell_for_#{field.id()}"
      field.load()
      cell.append field.element()
  

      @_model   = options.model
    
    dsl = {
      _add: (field, attribute) ->
        field.id attribute
        field.bind 'submit', self
        self._fields.add field
        field.release()        
      text: (attribute) ->
        @_add ST.TextFieldView.create(), attribute
      enum: (attribute) ->
        details = self.detailsFor attribute
        @_add ST.EnumFieldView.createWithValuesNull(details.values, details.null), attribute
      model: (attribute) ->
        details = self.detailsFor attribute
        field = ST.ModelFieldView.createWithModel self._model._namespace.class(details.model)
        field.searchRemotelyAt details.searchesRemotelyAt if details.searchesRemotelyAt
        @_add field, attribute
    }
    definition.call dsl
    @loadFieldValues()
