Inserts a large editable text area into a HTML form in NST WUI style.
The following parameters are recognized:
The name to assign to the text area (what the CGI script will use when looking up the value).
Default value to initialize the text area with.
The number of lines of text to allow the user to edit (defaults to 25 if omitted).
The number of columns of text to allow the user to edit (defaults to 80 if omitted).
Optional title attribute to appear as a tooltip to the user when their mouse hovers over the input field.
Name of a CSS class (defaults to "wuiInputText" if ommitted).
Additional overriding attributes to CLASS parameter.
Example of using the macro:
@wuiInputTextArea("cmd","ls -al")
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")
@wuiInputTextArea("cmd","ls -al")
EOF
This macro is defined as:
<textarea@htmlAttr("name","@param(0)") @htmlAttr("class","@fnb("@param(5)","wuiInputText")") @ifEqual("@param(6)",,,"@param(6)") @htmlAttr("title","@param(4)") @htmlAttr("rows","@fnb("@param(2)","25")") @htmlAttr("cols","@fnb("@param(3)","80")")>@param(1)</textarea>