Part VIII Appendixes
mm-table-model, mm:table-model
Description
Use the <mm:table-model> element to enable WebLogic Mobility Server to transform tables
for small devices. Table information can be presented differently depending on the capabilities of
the requesting device. Data can be "flattened" for devices that do not support tables, or for
devices that have screen widths that would cause the data to wrap excessively. Multiple table-
models can be used to tailor the data presentation to the capabilities of the requesting device. If
the device matches more than one table-model where clause, the first one that matches will be
used to structure the table. The table-model tag should be placed directly below the XHTML
tag. If there are nested tables, a separate table-model tag is required for each nested
<table>
table. This is an empty tag, so it requires a slash (/) before the final angle bracket (>).
Attributes
•
title="..."
This is an optional attribute. If present, it forms the table title when used with the
tabletype="group". If title is not present when tabletype="group" and a link name is required,
the keyword "Data" will be used instead.
•
major="row | column"
Determines whether the data is presented row first, or column first. The default is row first.
•
headlocation="..."
Identifies which row (or column) number should be used to identify the heading for each
section.
•
bodylocation="..."
This optional attribute specifies which rows or columns are to be displayed. Without this
attribute explicitly defined, WebLogic Mobility Server will default to displaying the entire
table although a warning will appear in the application server console. To explicitly direct
WebLogic Mobility Server to display the entire table, set bodylocation="*". Part of the table
can be displayed by setting this attribute to a space-separated list of numbers representing the
rows (or columns) to be sent to the device.
•
tabletype="normal | group"
If the required attribute tabletype is set to normal, WebLogic Mobility Server will attempt to
display the entire table. If the table is too big for WebLogic Mobility Server to fit onto a
"card", the page will be broken into multiple cards when necessary.
Setting tabletype to group causes the table headers to be rendered as links. These links can be
navigated to view detailed table content presented in a "table header: table data" pairing.
Using tabletype="group" for a device that can render tables will have little effect unless the
table is first "flattened" using sdtransform.
188 - BEA WebLogic Mobility Server User Guide
Need help?
Do you have a question about the WebLogic and is the answer not in the manual?