Template Row
If a table is bound to a content-provider that implements the IUpdateableTableContentProvider interface, and the content-provider returns true for the interface's getCanTemplateRow() method, then the table automatically renders a hidden template row. If a row is added to the table using the CAF model, and the table does not have a template row, the new row is empty.
You can add content to the new table row using the raw HTML DOM or by setting the label property on theCAF.Table.Row.Model, and using the CAF.Table.Model's set(x,item) method to update the row with the HTML column content specified by the label.
If a row is added to the table using the CAF model, and the table has a template row, the contents of the template row are copied to the new row. The template row contains the same controls as any other controls in the table, but it is initialized with the values from the content-provider in its template state.
The template state is set after setTemplateRow() method is called. With the template content in place, the row's value property is used to set the values of the all the controls in the new row to something other than their template state.
The CAF.Table.Model's template() method returns the CAF.Table.Row.Model for the template row, if it exists.
For more information about CAF controls, see the
webMethods CAF Tag Library Reference, as described in
Finding Information about CAF Controls.