def take_values_from_request( request, context )
take_bool(:checked)
take_value(:value)
take_value(:selection)
if value = value_from_request(request, context) then
if declared?(:checked) then
set_value(:checked, true)
elsif value == @values[:value] then
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