## <sasads:Table>

Used to display a Table. When there is a need to scroll through the Table, then the Table can be used in conjunction with a NavigationBar. The NavigationBar custom tag can be used as a subtag of the Table custom tag or it can be used outside the Table custom tag as a separate tag. If used as a subtag of the Table custom tag, then the NavigationBar custom tag's model is the parent Table tag. If the NavigationBar tag is used outside the Table tag as a separate tag, then user is responsible for setting the NavigationBar tag's model and the Table tag's model. If the Table tag's navigationBarEnabled attribute is set to false, then the user is responsible for rendering the NavigationBar, otherwise the Table will render the NavigationBar. The default scope for the sasads:Table custom tag is "session". This is because the scope must be set to "session" to allow scrolling through the Table via a NavigationBar. The Table tag is one of several SAS Custom Tags using an underlying TransformationBean that relies on a set of style classes that are used by default when generating the resulting markup language. For more information on style sheets and the default style classes that apply to underlying TransformationBean, refer to the AppDev Studio Developer Site. You'll find a useful reference document entitled Cascading Style Sheets, Images, and TransformationBeans as well as the TransformationBeans Style Sheet Reference.

### Syntax

`<sasads:Table
[borderWidth="int"]
[cellPadding="int"]
[cellSpacing="int"]
[customAttributes="java.lang.String"]
[epilog="java.lang.String"]
[horizontalAlignment="java.lang.String"]
[id="value"]
[instantiate="true|false"]
[locale="java.util.Locale"]
[maxColumns="int"]
[maxRows="int"]
[model="java.lang.String"]
[name="java.lang.String"]
[navigationBarEnabled="true|false"]
[navigationBar="java.lang.String"]
[navigationBarOrientation="java.lang.String"]
[prolog="java.lang.String"]
[ref="java.lang.String"]
[render="true|false"]
[renderType="java.lang.String"]
[scope="java.lang.String"]
[useColumnHeadings="true|false"]
[width="int"]
[widthPercentage="int"]>
[<sasads:ColumnFormat ...>
format to apply; can be markup language and/or valid meta data tags
</sasads:ColumnFormat>]
[<sasads:RowFormat ...>
format to apply; can be markup language and/or valid meta data tags
</sasads:RowFormat>]
[<sasads:CustomColumn ...>
markup language describing the custom column
</sasads:CustomColumn>]
[<sasads:CustomRow ...>
markup language describing the custom row
</sasads:CustomRow>]
[<sasads:ColumnRange ...>
[<sasads:ExceptionRangeSegment .../>]
[Additional <sasads:ExceptionRangeSegment> tags...]
[The body is ignored if the model is set.]
</sasads:ColumnRange>]
[<sasads:NavigationBar .../>]
[<sasads:NoRowsFormat ...>
string to be displayed when model has no rows
</sasads:NoRowsFormat>]
[Additional <sasads:ColumnFormat>, <sasads:RowFormat>, <sasads:CustomColumn>, <sasads:CustomRow>, <sasads:ColumnRange> tags...]
</sasads:Table>`

### Attributes

`borderWidth` | the border width of the table
`cellPadding` | the cell padding of the table
`cellSpacing` | the cell spacing of the table
`customAttributes` |
`epilog` |
`horizontalAlignment` | the horizontal alignment of the Table.
`id` | Case-sensitive name used to identify the object instance.
`instantiate` |
`locale` |
`maxColumns` | the maximum number of columns
`maxRows` | the maximum number of rows
`model` | the model of the Table
`name` |
`navigationBarEnabled` | the whether or not the table should the navigation bar
`navigationBar` | the navigationbar within the specified scope to use with the Table
`navigationBarOrientation` | orientation of navigation bar(s)
`prolog` |
`ref` |
`render` |
`renderType` |
`scope` |
`useColumnHeadings` | Specifies whether or not the table should use the model's headings
`width` | the width of the table
`widthPercentage` | the width of the table

### More Information

To view the documentation for the related TransformationBean, see com.sas.servlet.beans.TableInterface.

If you need to subclass the tag handler class for the sasads:Table tag, extend com.sas.taglib.servlet.beans.TableTag.