C H A P T E R 32 |
datasetLocator |
Renders a static text display of the current location and number of records currently being displayed by its targeted container view (which is bound to some DatasetModel). This tag is only valid when nested inside of a useViewBean or containerView or tiledView tag body, although, it typically will not be used inside a tiledView tag.
This tag is only valid when enclosed by both an HTML <form> element and a useViewBean, containerView, or tiledView tag. This tag may not contain any body content.
<jatox:datasetLocator name="datasetLocator1">
<jato:containerView name="datasetLocator1">
<%@ include file="/com/sun/jatox/view/DatasetLocator.jsp" %>
</jato:containerView>
</jatox:datasetLocator>
The above would be rendered into the following various forms of HTML:
1. Records X to Y of Z (example: Records 11 to 20 of 53)
2. Records X to Y (example: Records 6 to 10)
3. Record X of Z (example: Record 23 of 41)
4. Record X (example: Record 14)
The included file is a precomposed pagelet that can be customized with some limits. Tweaking the wrong tag could produce undesired or unpredictable behavior. It is encouraged that only static content be modified or additional HTML markup be added when customizing this file.
Copyright © 2004, Sun Microsystems, Inc. All Rights Reserved.