def append_to_response( response, context )
take_value(:method)
take_value(:enctype)
take_value(:href)
take_value(:query)
take_bool(:upload)
take_value(:session_id)
take_value(:direct_action, false)
take_value(:action_class)
unless (@values[:method].downcase == 'post') or \
(@values[:method].downcase == 'get') then
@values[:method] = 'post'
end
if @values[:upload] == true then
@values[:enctype] = MULTIPART_FORM_DATA
end
html = "<form name=\"#{name_value(context)}\" method=\"#{@values[:method]}\""
if @values[:href] then
html << " action=\"#{@values[:href]}\""
elsif direct_action? then
url = context.direct_action_url(@values[:action_class],
@values[:direct_action],
{},
@values[:session_id])
html << " action=\"#{url}\""
else
url = context.component_action_url()
html << " action=\"#{url}\""
end
if @values[:enctype] then
html << " enctype=\"#{@values[:enctype]}\""
end
html << other()
html << ">\n"
if @values[:query] then
html << hidden_fields(@values[:query])
end
response.content << html
@node.append_to_response(response, context)
response.content << "\n</form>\n"
end