template::element::render (private)

 template::element::render form_id element_id tag_attributes

Defined in packages/acs-templating/tcl/element-procs.tcl

Generate the HTML for a particular form widget.

Parameters:
form_id (required)
The identifier of the form containing the element.
element_id (required)
The unique identifier of the element within the form.
tag_attributes (required)
A name-value list of additional HTML attributes to include in the tag, such as JavaScript handlers or special formatting (i.e. ROWS and COLS for a TEXTAREA).
Returns:
A string containing the HTML for an INPUT, SELECT or TEXTAREA form element.

Partial Call Graph (max 5 caller/called nodes):
%3 template::element::get_reference template::element::get_reference (private) template::element::render template::element::render template::element::render->template::element::get_reference

Testcases:
No testcase defined.
Source code:
    get_reference

    # Remember that the element has been rendered already
    set element(is_rendered) t

    if { $element(mode) ne "edit" && [info exists element(display_value)] && $element(widget) ne "hidden" } {
        return "$element(before_html) $element(display_value) $element(after_html)"
    } else {
        return "[string trim "$element(before_html) [template::widget::$element(widget) element $tag_attributes$element(after_html)"]"
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: