       '?'
     url + sep + str
 
-  this.build_url_with_params = (dom_id_to_focus)->
+  build_url_with_params : (dom_id_to_focus)->
     results = new Array()
     _this =  this
     jQuery.each(
-      this.filter_declarations
+      @filter_declarations
       (i, filter_declaration)->
         param = _this.read_values_and_form_query_string(filter_declaration.filter_name, filter_declaration.detached, filter_declaration.templates, filter_declaration.ids)
 

          results.push(param)
    )

    res = this.base_request_for_filter
    if  results.length != 0
      all_filter_params = results.join('&')
      res = this.append_to_url(res, all_filter_params)

    if dom_id_to_focus
      res = this.append_to_url(res, this.parameter_name_for_focus + dom_id_to_focus)

    res



  this.reset = ->
    window.location = this.base_request_for_filter


  this.export_to_csv = ->
    window.location = this.link_for_export


  this.register = (func)->
    this.filter_declarations.push(func)


  this.read_values_and_form_query_string = (filter_name, detached, templates, ids)->
    res = new Array()

    for i in [0 .. templates.length-1]

      success:  -> $('#' + field_id).val('')
      type: 'POST'

  grid_state_to_request : (grid_state)->
    jQuery.map(
      grid_state
      (pair) -> encodeURIComponent(pair[0]) + '=' + encodeURIComponent(pair[1])
    ).join('&')


  append_to_url : (url, str)->

    sep = if url.indexOf('?') != -1
      if /[&\?]$/.exec(url)
