xowiki::Page instproc create_form_fields_from_form_constraints (public)

 <instance of xowiki::Page[i]> create_form_fields_from_form_constraints \
    [ -lookup ] form_constraints

Defined in /var/www/openacs.org/packages/xowiki/tcl/xowiki-procs.tcl

Create form-fields from form constraints. When "-lookup" is specified, the code reuses existing form-field instead of recreating it. Since create_raw_form_field uses destroy_on_cleanup, we do not have to care here about destroying the objects.

Switches:
-lookup (optional)
Parameters:
form_constraints (required)
Returns:
potentially empty list of form-field objects

Testcases:
form_fields_from_form_constraints
[ show source ]
Show another procedure: