C H A P T E R 33 |
datasetNavigator |
Renders four graphical buttons that represent the four dataset navigation actions: First, Previous, Next and Last. The actions work against the targeted container view that is configured in the component. 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.
The First and Previous buttons can be displayed as disabled or hidden (not displayed at all) when the first record displayed is determined to be the first record in the dataset. Same goes for the Next and Last buttons when it is determined that the last record (no more records) is being displayed. If for some reason no data was returned, the text (no data found) will be displayed instead of the buttons.
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:datasetNavigator name="datasetNavigator1">
<jato:containerView name="datasetNavigator1">
<%@ include file="/com/sun/jatox/view/DatasetNavigator.jsp" %>
</jato:containerView>
</jatox:datasetNavigator>
The above would be rendered into the following various forms of HTML (bold indicates enabled, non-bold indicates diabled):
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.