Overview | Library | Tag | Help
| FRAMES NO FRAMES

## wl-extension
Tag table

Generates an HTML table that can contain a button bar and one or more columns. To insert a button bar, include a nested <wl-extension:button-bar>. For each column that you want in the table, include a nested <wl-extension:column>. To populate the table with data: 1. The <wl-extension:table> tag's "name" attribute specifies a Struts form bean and its "property" attribute specifies a property that contains a collection of row beans. 2. The <wl-extension:table> tag selects a row bean from the collection, then it iterates over its nested <wl-extension:column> tags. 3. Each <wl-extension:column> tag contains a "property" attribute, which specifies which property of the current row bean to render. The Administration Console uses this tag to present a list of configured resources and a set of buttons for working with the resources. For example, this is the type of table that lists all SNMP monitors in a domain and provides buttons for creating new monitors or deleting existing ones.

Examples

    	   	<wl-extension:table name="genericTableForm"
    			  property="contents"
    			  showcheckboxes="true"
    			  captionEnabled="true"
    			  controlsEnabled="true"
    			  checkBoxValue="handle"
    			  tableCaption="snmp.snmpjmxmonitor.table.caption"
    			  bundle="snmp"
    			 >

    	  <wl-extension:button-bar>
             <wl-extension:button-bar-button labelid="button.delete.label" portlet="SnmpMonitorsDeleteSNMPJMXMonitorPortlet" pageLabel="SnmpMonitorsDeleteSNMPJMXMonitor"/>
    	  </wl-extension:button-bar>

    	  <wl-extension:column property="Name" label="snmp.snmpjmxmonitor.table.label.name">
    		<wl-extension:column-link portlet="SNMPMonitorDispatcherPortlet">
    		  <render:pageUrl pageLabel="SNMPMonitorDispatcherPage"/>
    		</wl-extension:column-link>
    	  </wl-extension:column>
    	  <wl-extension:column property="Type" label="snmp.snmpjmxmonitor.table.label.type"/>
    	  <wl-extension:column property="MonitoredMBeanType" label="snmp.snmpjmxmonitor.table.label.monitoredmbeantype"/>
    	  <wl-extension:column property="MonitoredMBeanName" label="snmp.snmpjmxmonitor.table.label.monitoredmbeanname"/>
    	  <wl-extension:column property="MonitoredAttributeName" label="snmp.snmpjmxmonitor.table.label.monitoredattributename"/>
    	  <wl-extension:column property="PollingInterval" label="snmp.snmpjmxmonitor.table.label.pollinginterval"/>
    	</wl-extension:table>

Tag Information
Tag Class | com.bea.console.taglib.html.TableTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
name | true | true | `java.lang.String` | The name of the Struts form bean that contains properties for this table. Use the "property" attribute to specify which property this table renders. By default, this value is also used for the HTML <table name=""> attribute.
property | true | true | `java.lang.String` | The property of the form bean that contains a collection of row beans. Use the "name" attribute to specify the form bean that contains the property.
bundle | true | true | `java.lang.String` | Identifies the message bundle that contains localized properties. Properties files for this bundle must be located in /WEB-NF/classes and be named 'bundle-value'[_'locale'].properties.
htmlname | false | true | `java.lang.String` | Overrides the default HTML control name for this control. The default value is the name of the form bean that this tag is using. Use this attribute if both of the following are true: 1. Your JSP contains multiple tables and forms or a combination of both, 2. Your <wl-extension:table> tags specify "controlsEnabled=true" or "customize=true".
controlsEnabled | false | true | `boolean` | Specifies that the table contains a button bar whose contents is defined in a nested <wl-extension:button-bar> tag.
singlechange | false | false | `boolean` | Specifies whether a user must start a WebLogic Server edit session before being able to use the button bar. Specify "true" only if this control modifies an attribute in a WebLogic Server MBean. The default value is "true."
showCheckboxes | false | true | `boolean` | Inserts a column at the beginning of each table row. The column contains a check box whose value is determined by the "checkBoxValue" attribute of this tag.
checkboxname | false | true | `java.lang.String` | The name of a property in a table bean that contains an Array of values. The Array contains one element for each checkbox that is selected when the user submits the form (table). By default, the Administration Console assumes that you have defined a property named "chosenContents" in your table bean and uses this property to store the Array. Use this "checkboxname" attribute only if you want to specify a different name for the property.
checkBoxValue | false | true | `java.lang.String` | The name of a property in the table's row bean whose value is posted when a user selects a checkbox and submits the form (table). For example, if you specify "handle", when a user selects a checkbox for row 1, this tag retrieves the value of the "handle" attribute in row bean 1 and sets it as an Array element in the table bean's chosenContents property (unless you have used the "checkboxname" attribute of this tag to specify a different name for the table bean's property).
singlechoice | false | false | `boolean` | Specifies whether radio buttons or checkboxes are rendered for table rows. A value of "true" renders radio buttons and allows only a single selection. A value of "false" renders checkboxes and enables multiple selections.
captionEnabled | false | true | `boolean` | Specifies that the table is immediately preceded by a text string whose contents is defined in a nested <wl-extension:caption> tag. You can use a caption to provide a parameterized title for the table.
pageSize | false | true | `int` | The default number table rows to display by default.
rowPrimaryColor | false | true | `java.lang.String` | Generates an inline CSS style that specifies the background color of odd-numbered rows in the table. Because this is an inline style, it cannot be overridden by an external style.
rowSecondaryColor | false | true | `java.lang.String` | Generates an inline CSS style that specifies the background color of even-numbered rows in the table. Because this is an inline style, it cannot be overridden by an external style.
showheadings | false | false | `boolean` | Specifies that all table columns display their headings as defined in the "label" attribute of the <wl-extension:column> tag.
customize | false | false | `boolean` | Renders a control immediately above the table that enables users to customize the information that the table displays. The Administration Console provides a default JSP to render the customization controls.
customizer | false | true | `java.lang.String` | Overrides the default customization JSP with a JSP that you have created. The path must be relative to the root of the portal Web application.
externalfilter | false | true | `boolean` | With a value of "true", the contents of this table can be filtered by users who customize the table view. The "customizer" attribute of this tag specifies a JSP that defines the filtering. With a value of "false", the filtering criteria will not be included in the table customization provided by this tag.
action | false | true | `java.lang.String` | Not supported for public use.
actionParam | false | true | `java.lang.String` | Not supported for public use.
permission | false | true | `java.lang.String` | Not supported for public use.
object | false | true | `java.lang.String` | Not supported for public use.
bundle | true | true | `java.lang.String` | Identifies the message bundle that contains localized properties. ??How does WLS find a properties file based on the value of this attribute? Is it 'bundle-value'.properties?
initialsortcolumn | false | true | `java.lang.String` | Specifies that column to sort on when the table is first displayed.
initialsortorder | false | true | `java.lang.String` | Specifies that order (ascending = 1, descending = 2) to sort on when the table is first displayed.

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

Output Generated by Tag Library Documentation Generator.

Version: 9.1