# File lib/cgikit/elements/checkbox.rb, line 30
  def take_values_from_request( request, context )
    take_value(:value)
    take_value(:selection)
    take_bool(:checked)

    if value = value_from_request(request, context) then
      if declared?(:checked) then
        set_value(:checked, true)
      else
        set_value(:selection, @values[:value])
      end
    elsif context.current_form?(request) then
      if declared?(:checked) then
        if @values[:checked] == true then
          set_value(:checked, false)
        end
      else
        if @values[:value] == @values[:selection] then
          set_value(:selection, nil)
        end
      end
    end
  end