template::form::check_elements (private)

 template::form::check_elements id

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

Iterates over all declared elements, checking for hidden widgets and rendering those that have not been rendered yet. Called after rendering a custom form template as a debugging aid.

Parameters:
id (required)
The form identifier

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

Testcases:
No testcase defined.
Source code:
    get_reference

    set output ""

    foreach element_ref $elements {

        # get a reference by element ID
        upvar #$level $element_ref element

        # Check if the element has been rendered already
        if {$element(is_rendered) == "f"} {

            # If the element is hidden, render it
            if {$element(widget) eq "hidden"} {

                append output "<div>[template::element render $id $element(id) {} ]</div>\n"
                set element(is_rendered) t

            } else {

                ad_log Warning "template::form::check_elements: MISSING FORMWIDGET: $id\:$element_ref"
                # Throw an error ?
            }
        }
    }

    return $output
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: