Class ::Generic::Form

::Generic::Form[i] create ... \
           [ -action (default "[::xo::cc url]") ] \
           [ -add_page_title add_page_title ] \
           [ -data data ] \
           [ -edit_page_title edit_page_title ] \
           [ -fields fields ] \
           [ -folder_id (default "-100") ] \
           [ -html (default "") ] \
           [ -name (default "[namespace tail [self]]") ] \
           [ -package_id (default "") ] \
           [ -submit_link (default ".") ] \
           [ -validate (default "") ] \
           [ -with_categories (default "false") ]

Defined in

Class Relations

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

Methods (to be applied on instances)

  • action (setter)

  • add_page_title (setter)

  • after_submit (scripted)

  • data (setter)

  • edit_data (scripted)

  • edit_page_title (setter)

  • edit_request (scripted)

  • fields (setter)

  • folder_id (setter)

  • form_vars (scripted)

  • generate (scripted, public)

     <instance of Generic::Form[i]> generate [ -template template ] \
        [ -mode mode ] [ -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.

    Switches:
    -template (optional, defaults to "formTemplate")
    is the name of the Tcl variable to contain the filled in template
    -mode (optional, defaults to "edit")
    -export (optional)
    list of attribute value pairs to be exported to the form (nested list)

    Testcases:
    xowiki_test_cases
  • get_id_field (scripted)

  • html (setter)

  • init (scripted)

  • name (setter)

  • new_data (scripted)

  • new_request (scripted)

  • on_submit (scripted)

  • on_validation_error (scripted)

  • package_id (setter)

  • request (scripted)

  • set_form_data (scripted)

  • submit_link (setter)

  • validate (setter)

  • with_categories (setter)