previo | siguiente |
The templating system provides a form processing engine that allows for the specification of forms, their rendering by template or "by hand", and which provides state information to simplify form processing. OpenACS provides a further, simplified Tcl procedure which "wraps" the templated form builder, named ad_form. Newcomers to OpenACS should concentrate on learning to use this procedure. Form processing is conceptually divided into three states: |
|
ad_form also does key management for acs_objects. It optionally generates the object_id key automatically, and uses it along with the basic state information enumerated above to determine various code blocks to execute (the next slide contains an example). It pre-generates the key to provide basic multi-click protection, and signs it with an encrytped value to make it very difficult for a remote program to generate HTTP POST requests that look valid to the form builder. |