def handleResponse(context)
val = context.getBinding(@bindings["value"])
attrs = {'type', 'radio'}
if @attributes['name'] !~ /^\d+(\.\d+)*$/
if context.radio_box_id.has_key? @name
attrs['name'] = context.radio_box_id[@name]
else
context.radio_box_id[@name] = context.elementID
attrs['name'] = context.elementID
end
else
attrs['name'] = @name
end
if @attributes['value'].to_s == val.to_s
attrs['checked'] = nil
@attributes.delete('checked')
elsif val
@attributes.delete('checked')
end
context.response << openTag(attrs,context)
end