org.apache.tapestry.contrib.table.components.Table.jwc Maven / Gradle / Ivy
The main Table component that is implemented using the lower-level
Table components such as TableView and TableRows.
The component does not render its body, which makes it a good place
to declare Blocks defining the column appearances.
The model describing the data to be presented by the Table component.
This parameter is optional, but either the 'tableModel' or both
'source' and 'columns' parameters must be provided.
The data to be displayed by the component. This parameter is available as
an alternative to 'tableModel' and must be used in combination with the
'columns' parameter.
The parameter must be an array of values, a collection, an iterator,
or an object implementing the IBasicTableModel interface.
The table columns to be displayed.
The parameter must be an array, a list, or an Iterator of ITableColumn objects,
an ITableColumnModel, or a String describing the columns (see documentation).
The number of records displayed per page when source/columns are used.
The page size is 10 by default.
The initial page to be displayed.
This is the first page by default.
The id of the column to initially sort the table by.
The column is set to null by default, i.e. there is no sorting.
The order of the initial sorting.
Set this parameter to 'false' to sort in an ascending order
and to 'true' to sort in a descending one.
The manager that controls what part of the table model will be stored in
the session.
The manager that controls where the session data will be stored.
Defines how the table state (paging and sorting) will be persisted
if no tableSessionStoreManager is defined.
The possible values are 'session' (the default), 'client', 'client:page',
and 'client:app'.
The component where Block and messages are pulled from when using source/columns.
The maximum number of pages that will be displayed in the list of table pages.
By default, only seven of the pages around the current one are shown.
The column that is being rendered. This value is updated when both
the column headers and column values are rendered.
The row that is being rendered. This value is null when
the column headers are rendered.
If provided, the parameter is updated with the index of the loop on each iteration.
Only active in a form. An OGNL expression that returns the primary key of the iterated value.
The primary keys are stored in hidden fields during rendering and are loaded from the form
during a rewind to ensure that the iterations remain the same.
This is a simpler, but a less efficient alternative of the 'converter' parameter.
If needed, please use in conjuction with 'fullSource' to reference objects
not currently present in 'source'.
Also, use the 'defaultValue' parameter to define the object to be returned if
a value corresponding to a particular primary key cannot be found.
Only active in a form and in combination with the 'keyExpression' parameter.
If an object corresponding to a primary key stored in the form cannot be
found in the 'source' parameter, then the objects provided by this parameter
are searched for a match next.
Only active in a form. The value to be used when no match for a given primary key is found.
Only active in a form. Defines how the items iterated upon
will be stored in the form as hidden values and how the stored information will be
converted back to objects.
This interface allows only the primary key of the items to be stored,
rather than the whole item.
Only active in a form. If provided, the parameter is automatically updated
before a rewind with the list of primary keys stored in the form.
The parameter is updated right before the iterations begin in a rewind and
could be used to preload the relevant objects in a provided 'converter'.
Only active in a form. Determines whether to avoid creating hidden fields within a form.
Using this parameter may make the form structure different during render and rewind,
and cause exceptions as a result. Please use with caution.
The image to use to describe a column sorted in an ascending order.
The image to use to describe a column sorted in a descending order.
The CSS class of the table pages
The CSS class of the table columns
The CSS class of the table rows
The CSS class of the table values
literal:table
literal:div
© 2015 - 2024 Weber Informatics LLC | Privacy Policy