| java.lang.Object dinamica.AbstractModule dinamica.GenericOutput dinamica.HGridPagedOutput
HGridPagedOutput | public class HGridPagedOutput extends GenericOutput (Code) | | Prints recordset in tabular format using
horizontal direction, meaning that each row
from the recordset will fill a cell until
the maximum nimber of cells is reached, then
a new row will be appended to the table. It may
be used to print products catalog with pictures
and things like that.
This class also supports paged views, which are
ideal for creating thumbnails or galleries.
The Actions using this class are supposed to be INCLUDED
by other Actions, using the include marker ${inc:/action/xyz?param=value},
it was not designed to produce a complete page, just a part of it,
a grid with horizontal data direction, to be more specific. Actions
using this Output class must define the following elements in config.xml,
under the root element:
row.htm
col.htm
3
myRecordset.sql
Of course you can adjust these elements's values to
meet your requirements.
Most of the time, the Action using this Output class
will require only one recordset, which must be created
by the parent Action (the one that includes the others)
and saved into a request attribute, which means that this
class must retrieve the recordset from the request
object.
This class requires a basic template (defined in the output block in config.xml),
like any other text-based output that inherits from dinamica.GenericOutput,
invokes super.print() before proceeding to create its own output. This template
should contain the surrounding HTML code for the table, and a dummy marker
named ${hgrid} where the actual generated HGrid will be printed.
Creation date: 09/07/2005
(c) 2005 Martin Cordova
This code is released under the LGPL license
Dinamica Framework - http://www.martincordova.com
author: Martin Cordova (dinamica@martincordova.com) |
|
|