def to_s
parser = CKHTMLParser.new( parent, body )
value = parser.parse
element_id = CKElementID.new
element_id.component = parent.class.to_s
element_id.element = name
to_s = "<form method=\"#@attr_method\""
to_s << " action=\"#@attr_href\"" if @attr_href
to_s << " target=\"#@attr_target\"" if @attr_target
to_s << " enctype=\"#@attr_enctype\"" if @attr_enctype
to_s << other_attributes_string
to_s << ">\n<div>\n"
to_s << "<input type=\"hidden\" name=\"element_id\" "
to_s << "value=\"#{element_id}\">\n"
if application.session? then
to_s << "<input type=\"hidden\" "
to_s << "name=\"#{application.session_key}\" "
to_s << "value=\"#{application.session_id}\">\n"
end
if @attr_query then
to_s << _create_hidden_field( @attr_query )
end
to_s << "</div>\n#{value}\n</form>\n"
end