hdp
Tag sortBy


This JSP Tag is used to apply a hyperlink (<a>) to the column header in the search results table. This allows the user to sort the search results by this column. By default, when the column header is clicked and the current search result is not sorted by that column, then the result will be displayed in ascending order. The search results will be toggled between ascending and descending order every time the column header is clicked.


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

Attributes
NameRequiredRequest-timeTypeDescription
actionIdtruetruejava.lang.StringBean identifier of the corresponding PaginationAction instance declared in Spring application context.
sortedColumntruetruejava.lang.StringIt will be appended to "order by" clause of SQL or ORM statement. It's tag user's responsibility to make sure the value of this property is mapped to table column or Bean property correctly and satisfy the related Database SQL or ORM Query syntax
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

styleClassfalsetruejava.lang.StringSpace-separated list of CSS style class(es) to be applied to the rendered hyperlink (<a>). Refer to attribute 'class' in <a> HTML tag.
stylefalsetruejava.lang.StringSpecifies an inline style for the rendered hyperlink (<a>). Refer to attribute 'style' in <a> HTML tag.
tabindexfalsetruejava.lang.StringPosition of the element (hyperlink <a>) in the tabbing order for the current document. This value must be an integer between 0 and 32767. Refer to attribute 'tabindex' in <a> HTML tag.
titlefalsetruejava.lang.StringAdvisory title information about markup elements generated for the element (hyperlink <a>). Refer to attribute 'title' in <a> HTML tag.
accesskeyfalsetruejava.lang.StringAccess key that, when pressed, transfers focus to this element (hyperlink <a>). Refer to attribute 'accesskey' in <a> 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.