Hi all, I would like to ask a question.
I will use JSF+Spring+SDO to develop a web application, as pagination is a
general function in web application,
is there anybody who has designed a DataObject which include all
needed pagination information, such as total count of pages, total count of
records retreived from database, and records(will be presented as a
collection of Data Object)which will be displayed on current page. by using
this DataOjbect, POJO service bean(implmented by Spring) can return it to
JSF for presentation.
I want to declare a DataObject in xsd file like following, and generate a
static dataobject according to it. but I don't which type should be used to
present 'results' element(will be presented as a collection of Data
Object,which will be displayed on current page).
<xsd:complexType name="Page">
<xsd:sequence>
<xsd:element name="recordCount" type="xsd:int"/>
<xsd:element name="pageCount" type="xsd:int"/>
<xsd:element name="pageSize" type="xsd:int"/>
<xsd:element name="pageNum" type="xsd:int"/>
<xsd:element name="results"
type="??"/> /**************************which type should be used
here???
</xsd:sequence>
</xsd:complexType>
Any suggestion will be appreciated.