@trLabeled(HEADER, DATA, [HEADER_ATTR], [DATA_ATTR])

Used for building user input forms within a table.

The following parameters are recognized:

HEADER

The heading to put in the left column.

DATA

The data to be displayed in right column.

[HEADER_ATTR]

Optional attributes for the header column (<td> entity).

[DATA_ATTR]

Optional attributes for the right column (<td> entity).

This macro is very handy when building tables which have two columns. The first column is treated as a label column, the second column is used for displaying the data. This is primarily used for building input forms.

Example of using the macro:

<table @htmlAttr("class","labeledRow") @htmlAttr("summary","Two Columns")>
@trLabeled("Date","@now()")
@trLabeled("Name","George")
@trLabeled("Age","34",,"@htmlAttr("align","right")")
</table>

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")

<table @htmlAttr("class","labeledRow") @htmlAttr("summary","Two Columns")>
@trLabeled("Date","@now()")
@trLabeled("Name","George")
@trLabeled("Age","34",,"@htmlAttr("align","right")")
</table>
EOF

This macro is defined as:

<tr>
@thLabeled("@param(0)","@param(2)")
@tdLabeled("@param(1)","@param(3)")
</tr>