This portlet displays a table and makes it possible to sort the table rows.
Using this portlet requires a separate licence.
The table rows can be sorted by clicking a column header in the portlet. This causes the rows to be sorted alphabetically by the values in the clicked column. Another click on this column header reverses the sort order. If more rows than the configured number of lines per page exist, links for browsing the table are displayed.
The layout of this portlet (and all other portlets as well) can be
specified by means of a Velocity template. This template is located in the
PM-PL
web application, in the
/WEB-INF/templates/com/infopark/portlet/gridview
directory. The
layout can be adapted as desired.
In order to display a table, include it as an XML element in the
npspm
element. To avoid conflicts with editors, a CDATA section
should be used as shown in the example below.
The portlet can be integrated into layout files according to the following example:
<npspm includePortlet="/PM-PL/gridview" ... ><![CDATA[ <grid rowsPerPage="10"> <row><cell>Titel 1</cell><cell>Titel 2</cell></row> <row><cell>1.1</cell><cell>1.2</cell></row> <row><cell>2.1</cell><cell>2.2</cell></row> <row><cell>3.1</cell><cell>3.2</cell></row> </grid> ]]></npspm>
You can optionally use the rowsPerPage
attribute of the
grid
element to configure the number of table rows to be
displayed in the portlet.