Runtime tools : Channels components : HTML Channel : Reference : Custom JSP tags : SelectableTableTag
  
SelectableTableTag
A SelectableTableTag references an IndexedCollection in the context hierarchy and creates an HTML Table element containing the collection's contents. Each row of the HTML table is selectable.
Mandatory attributes
dataNameForList, dataName, dataNameForValue
Attributes
dataNameForList
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. If a data element is read only, the table displays its value as text but not in a input text field.
dataName
Which DataField in the context is updated with the row number of the selected row if the inner element is a KeyedCollection
dataNameForValue
Which DataField in the context is updated with the contents of the selected row if the inner element is an IndexedCollection
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
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 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
cellSize
Size of all input text fields contained in the table
Default value: null
nonEditableColumns
Which columns do not have input text fields
Attribute Default value: null
nonEditableRows
Which rows do not have input text fields
Attribute Default value: null
type
Type of button that the user uses to select a row
Attribute Default value: button
event
How to display the selectable rows.
If the event attribute is set, a button or an image button is created at the end of each row. When the user clicks a button, the JSP sets the dataName values and the dse_nextEventName value, and then submits the HTML Form.
If the event attribute is not set, a radio button is created at the end of each row and the JSP does not submit the Form when the user selects the row.
Attribute Default value: null
value
What is on the row selection buttons
Attribute Default value: select
width
Width of the button
Attribute Default value: null
style
Style for the table
Attribute Default value: null
custom
Adds attributes to the input element. The following is the format of this attribute:
custom="att1Name=\"att1Value\
"att2Name=\"att2Value\"...
Attribute Default value: null
Example
<H1>Using the SelectableTable Tag</H1>
<dse:form name="f1" nextEventName="ok">
<dse:selectTable dataNameForList="cardMovementsList" dataName="selectedMovement"
dataNameForValue="name" event="selected" border="1" start="0" end="3"
showHeaders="no" width="70" style="blue"/><br>
<dse:selectTable dataNameForList="cardMovementsList" dataName="selectedMovement"
dataNameForValue="name" event="selected" headers="{Date,Card Number,Name,Amount}"
cellBGColor="#FFCCCC" cellBGColor2="#CCCCFF" headerBGColor="#CCCCCC" border="0"
start="3" end="8" colSizes="{60,150,300,50}"
colAlignments="{center,center,left,right}" fontColor="navy" fontSize="-1"
type="image" value="/images/infoIcon.gif" showCaption="no"/><br>
<dse:selectTable dataNameForList="cardMovementsList" dataName="selectedMovement"
dataNameForValue="name" headers="{Date,Card Number,Name,Amount}"
cellBGColor="#CCFFCC" cellBGColor2="#FFFFCC" headerBGColor="#CCCCCC" border="0"
start="8" end="11" colSizes="{60,150,300,50}"
colAlignments="{center,center,left,right}" fontColor="navy" fontSize="-1"
type="radio" showCaption="no"/><br>
Go up to
Custom JSP tags