def append_to_response( response, context )
take_bool(:displayed)
take_value(:form_value)
take_value(:form_values)
unless @values[:displayed] then return end
if @values[:form_value] then
value = @values[:form_value]
elsif @values[:form_values] then
value = @values[:form_values]
end
html = "<#{@values[:tag]}"
if has_name?(@values[:tag]) then
html << " name=\"#{name_value(context)}\""
end
if has_value?(@values[:tag]) and \
(declared?(:form_value) or declared?(:form_values)) then
html << " value=\"#{value}\""
end
if has_href?(@values[:tag]) and declared?(:invoke_action) then
url = context.url(context.request.request_handler_key)
html << " href=\"#{url}\""
end
html << other()
if no_close_tag?(@values[:tag]) then
html << ' />'
else
html << '>'
end
response.content << html
unless empty? then
@node.append_to_response(response, context)
end
unless no_close_tag?(@values[:tag]) then
response.content << "</#{@values[:tag]}>"
end
end