@formBegin(ACTION, [ID], [ATTRS], FORCE_METHOD)

Begin a HTML form.

The following parameters are recognized:

ACTION

The CGI page which will handle the form processing.

[ID]

Optional "id" to associate with the form.

[ATTRS]

Optional set of attributes to apply to form entity.

FORCE_METHOD

Force method to "post" or "get".

Example of using the macro:

@formBegin("process.cgi","myform")

  @wuiInputButton("doit","Press Me")

@formEnd()

Assuming the com.ccg.macros.at.All class is within your CLASSPATH and the config/html.at macros file has been generated (Hint: run make atmacros in the wui directory), a developer should be able to run the above example by copy/pasting from below:

[root@probe root]# java com.ccg.macros.at.All <<EOF
@include("config/html.at",,"d")

@formBegin("process.cgi","myform")

  @wuiInputButton("doit","Press Me")

@formEnd()

EOF

This macro is defined as:

<form
  @htmlAttr("action","@param(0)")@ifEqual("@param(1)",,,"
  @htmlAttr("id","@param(1)")")@ifEqual("@param(2)",,,"
  @param(2)")
  @htmlAttr("method","@fnb("@param(3)","@formMethod()")")>