This element creates a bordered box (<fieldSet>
)
containing a table (<table>
). The table can be filled by
using npsField
tags.
Table cell tags (<td>
) are automatically added before
and after the <npsField>
tags. If other than
<npsField>
tags are used, the programmer needs to add
the table cell tags by himself. Additionally, the appropriate table row
tags (<tr>
) need to be defined as well. Syntax:
<npsFieldTable label="label">...</npsFieldTable>
<npsFieldTable label="Default values"> <tr> <npsField type="text" name="lastName" label="First name" /> <npsField type="text" name="firstName" label="Last name" /> </tr> <tr> <npsField type="select" name="year" label="Year" selectiontype="single" rendermode="list" required="true"> <npsFieldOption value="2013" selected="true" /> <npsFieldOption value="2012" /> <npsFieldOption value="2011" /> </npsField> <npsField type="select" name="month" label="Month" selectiontype="single" rendermode="list" required="true"> <npsFieldOption value="01" label="January" selected="true" /> <npsFieldOption value="02" label="February"/> <npsFieldOption value="03" label="March"/> </npsField> </tr> </npsFieldTable>