def run
@attr_name = element_id.to_s
@attr_checked = fetch( 'checked' )
@attr_value = fetch( 'value' )
@attr_selection = fetch( 'selection' )
if ( ( @attr_value and @attr_selection ) and \
( @attr_value == @attr_selection ) ) then
@attr_checked = true
end
if application.request.form_values[element_id.to_s].empty? then
@attr_checked = false
if attr_name = fetch('checked', false) then
parent.take_value(attr_name, false)
end
end
check_required_attributes( ['selection','value'], ['checked'] )
check_conflicted_attributes( 'selection', 'checked' )
check_conflicted_attributes( 'value', 'checked' )
end