Runtime tools : Presentation components : JSPs : Reference : Custom JSP tags : TableTag
  
TableTag
A table tag references an IndexedCollection in the context hierarchy and creates an HTML Table element containing the collection's contents.
Mandatory attributes
dataNameForList
TableTag attributes
dataNameFor List
Name of the IndexedCollection in the context hierarchy. The inner data element can be a KeyedCollection or an Indexed Collection containing a data field. If the inner element is a KeyedCollection, the table has a row for each element in the collection.
border
Size of the border of the table
Default value: null
cellspacing
Amount of space between table cells
Default value: null
cellpadding
Amount of space between each table cell and the cell's contents
Default value: null
width
Width of the table
Default value: null
cellBGColor
Background color of the cells
Default value: null
cellBGColor2
Second background color. If this is enabled, the rows in the table alternate between this color and the cellBGColor.
Default value: null
showCaption
Whether the table displays a caption. If it does, the table uses the description of the IndexedCollection for the caption value.
Default value: yes
showHeaders
Whether the table displays header cells
Default value: yes
headers
Which cells are header cells. This is a list with the format of "{header1, header2, ...}". The contents of the list are used as keys to access a resource bundle.
Default value: null
headerBGColor
Background color of the header cells
Default value: null
headerAlignment
Alignment of the text in the header cells
Default value: null
headerFontFace
Typeface of the text in the header cells
Default value: null
headerFontSize
Size of the text in the header cells
Default value: null
headerFontColor
Color of the text in the header cells
Default value: null
fontFace
Typeface of the table text and caption
Default value: null
fontSize
Size of the table text and caption
Default value: null
fontColor
Color of the table text and caption
Default value: null
start First
element in the Collection to be displayed
Default value: null
end
Last element in the Collection to be displayed
Default value: null
colSizes
Width of each column. This is a list with the format of "{col1, col2, ...}".
Default value: null
colAlignments
Alignment of the text in each column. This is a list with the format of "{col1, col2, ...}".
Default value: null
skipCols
Whether to skip displaying a column. This is a list with the format of "{col1, col2, ...}".
Default value: null
style
Style for the table
Default value: null
custom
Adds attributes to the input element. The following is the format of this attribute:
custom="att1Name=\"att1Value\
"att2Name=\"att2Value\"..."
Default value: null
Example
<H1>Using the Table Tag</H1>
<dse:table dataNameForList="phonesList" headerBGColor="#AAEEAA" headerFontFace="Arial"
headers="{Type,Name,Available,Area Code,Number,Ext.}" border="1"
colSizes="{40,100,80,40,100,40}" cellBGColor="#EEAAAA" cellBGColor2="#AAAAEE"
colAlignments="{center,left,center,right,right,right}" start="1" end="2"/><br>
<dse:table dataNameForList="table" headerBGColor="#AAAAAA"
headers="{ ,Meals,Hotels,Transport,Subtotals}" cellBGColor="#AAEEAA"
cellBGColor2="#EEEEAA" start="0" end="3"/>
Go up to
Custom JSP tags