hdp
Tag gotoPage


This JSP Tag is used to render a text box along with either a submit button, hyperlink, or image link. The button, hyperlink, or image link is used to submit the request and navigate to the page specified in the text box. The decision to render the button, hyperlink, or image link relies on the following rule:

If property 'imgSrc' is specified, then an image link (<img> tag with enclosing <a> tag) is rendered. Otherwise, if property 'linkLabel' is specified, the hyperlink (text with enclosing tag <a>) is rendered. If none of these are specified, the button is rendered by default.



Tag Information
Tag Classorg.hdpagination.web.taglib.GoToPageTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
actionIdtruetruejava.lang.StringBean identifier of the corresponding PaginationAction instance declared in Spring application context.
resendParamsfalsetruejava.lang.StringThis property is used to indicate whether the parameters of the previous http request should be sent again. This event is triggered when user clicks the pagination control to access the page of data. The default value is 'false'. If you want to keep all the original request parameters in subsequent pagination requests, you should set this property to 'true'.

The types of pagination control include:

1) pagination navigation links (e.g. Previous Next 1 2 3 4 5 6 7 8 First Last), rendered by <pageLinks> tag

2) available pages dropdown, rendered by <pagesDropdown> tag

3) goto page text field and submit button, rendered by <gotoPage> tag

4) sort hyperlink, rendered by <sortBy> tag

5) select sort dropdown, rendered by <selectSortBy> tag

invalidPageAlertfalsetruejava.lang.StringThe alert message which is displayed when an invalid integer number is typed in the text box.
exceedMaxPageAlertfalsetruejava.lang.StringThe alert message which is displayed when page number typed in the text box is greater than total pages.
buttonLabelfalsetruejava.lang.StringLabel of the submit button. The default value is "Go". This property will not take effect if property 'imgSrc' or 'linkLabel' is set and the button is not rendered in this case.
linkLabelfalsetruejava.lang.StringThe text label for the hyperlink if rendered. This property will not take effect if the property 'imgSrc' is set.
styleClassfalsetruejava.lang.StringSpace-separated list of CSS style class(es) to be applied when the element (button, hyperlink, or image link) is rendered.
stylefalsetruejava.lang.StringSpecifies an inline style for the element (button, hyperlink, or image link).
tabindexfalsetruejava.lang.StringPosition of the element (button, hyperlink, or image link) in the tabbing order for the current document. This value must be an integer between 0 and 32767.
titlefalsetruejava.lang.StringAdvisory title information about markup elements generated for the element (button, hyperlink, or image link).
accesskeyfalsetruejava.lang.StringAccess key that, when pressed, transfers focus to this element (button, hyperlink, or image link).
textStyleClassfalsetruejava.lang.StringSpace-separated list of CSS style class(es) to be applied to the text box. Refer to attribute 'class' in <input> HTML tag.
textStylefalsetruejava.lang.StringSpecifies an inline style for the text box. Refer to attribute 'style' in <input> HTML tag.
textTabindexfalsetruejava.lang.StringPosition of text box in the tabbing order for the current document. This value must be an integer between 0 and 32767. Refer to attribute 'tabindex' in <input> HTML tag.
textTitlefalsetruejava.lang.StringAdvisory title information about markup elements generated for the text box. Refer to attribute 'title' in <input> HTML tag.
textSizefalsetruejava.lang.StringThe number of characters used to determine the width of the text box. If not specified, the default value is "2". Refer to attribute 'size' in <input type="text" > HTML tag.
textMaxlengthfalsetruejava.lang.StringThe maximum number of characters that may be entered in the text box. Refer to attribute 'maxlength' in <input type="text" > HTML tag.
textAccesskeyfalsetruejava.lang.StringAccess key that, when pressed, transfers focus to this element (text box). Refer to attribute 'accesskey' in <input> HTML tag.
imgSrcfalsetruejava.lang.StringAbsolute or relative URL of the image to be displayed for the image link. If specified, the image link will be rendered. Otherwise, hyperlink (if property 'linkLabel' is specified) or button is rendered. Refer to attribute 'src' in <img> HTML tag.
imgWidthfalsetruejava.lang.StringSpecifies the width (pixels %) of the image. Refer to attribute 'width' in <img> HTML tag.
imgHeightfalsetruejava.lang.StringSpecifies the height (pixels %) of the image. Refer to attribute 'height' in <img> HTML tag
imgStyleClassfalsetruejava.lang.StringSpecifies a classname for the image. Refer to attribute 'class' in <img> HTML tag.
imgStylefalsetruejava.lang.StringSpecifies an inline style for the image. Refer to attribute 'style' in <img> HTML tag.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.