Begin a HTML form.
The following parameters are recognized:
The CGI page which will handle the form processing.
Optional "id" to associate with the form.
Optional set of attributes to apply to form entity.
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()")")>