Begin main content
Methods: Source: Variables:
[All Methods | Documented Methods | Hide Methods] [Display Source | Hide Source] [Show Variables | Hide Variables]

::xotcl::Class[i] ::Generic::Form

Class Hierarchy of ::Generic::Form

  • ::xotcl::Object[i]
    Methods for instances:
    __api_make_doc, __api_make_forward_doc, __timediff, abstract, ad_doc, ad_forward, ad_proc, appendC, arrayC, asHTML, autonameC, check, classC, cleanupC, configureC, containsC, copyC, db_0or1rowC, db_1rowC, debug, defaultmethodC, destroyC, destroy_on_cleanup, ds, evalC, existsC, extractConfigureArg, filterC, filterguardC, filtersearch, forward, hasclass, incrC, infoC, init, instvarC, invarC, isclass, ismetaclass, ismixin, isobject, istype, lappendC, log, method, mixinC, mixinguardC, moveC, msg, noinitC, objectparameter, parametercmdC, proc, procsearch, qn, requireNamespaceC, residualargsC, self, serialize, setC, set_instance_vars_defaults, show-object, substC, traceC, unknown, unsetC, uplevelC, upvarC, volatileC, vwait
    Methods to be applied on the class (in addition to the methods provided by the meta-class):
    getExitHandler, setExitHandler, unsetExitHandler
    • ::Generic::Form[i]
      Parameter for instances:
      action (default "[::xo::cc url]"), add_page_title, data, edit_page_title, fields, folder_id (default "-100"), html (default ""), name (default "[namespace tail [self]]"), submit_link (default "."), validate (default ""), with_categories (default "false")
      Methods for instances:
      after_submit, edit_data, edit_request, form_vars, generate, init, new_data, new_request, on_submit, on_validation_error, request, set_form_data
      Methods to be applied on the class:
      Methods provided by the meta-class
Class for the simplified generation of forms. This class was designed together with the content repository class ::xo::db::CrClass.
  • fields: form elements as described in ad_form.
  • data: data object (e.g. instance if CrItem)
  • folder_id: associated folder id
  • name: of this form, used for naming the template, defaults to the object name
  • add_page_title: page title when adding content items
  • edit_page_title: page title when editing content items
  • with_categories: display form with categories (default false)
  • submit_link: link for page after submit
Defined in packages/xotcl-core/tcl/generic-procs.tcl

Class Relations

  • superclass: ::xotcl::Object[i]
  • subclass: ::xowiki::WikiForm[i]


  • instproc generate (public)

    <instance of ::Generic::Form[i]> generate [ -template template ] \
        [ -export export ]
    the method generate is used to actually generate the form template from the specifications and to set up page_title and context when appropriate.

    -template (defaults to "formTemplate") (optional)
    -export (optional)

Methods: Source: Variables:
[All Methods | Documented Methods | Hide Methods] [Display Source | Hide Source] [Show Variables | Hide Variables]