JSP カスタムタグのライブラリ


page タグ

db、ftsearch、または view タグの結果に対してページ付けのコントロールを提供します。ボディが 1 度評価され、ヘッダーの後に viewloop タグ (view のコンテキストで) または docloop タグ (すべてのコンテキストで) があることが想定されます。ページからページへの移動は、pagefirstpagelastpagenextpageprev、および pagebar タグを使用して行います。

コンテキスト次のタグで有効です。


次のタグ用に作成されます。
構文<domino:page
id="name of object variable"
start="page number to start at"
rows="number of entries rendered per page"
direction="ASC|DSC|Ascending|Descending"
max="maximum number of pages to display"
evaluateonnorows="true|false"
viewasdocuments="true|false"
name="name of page parameter storing current page number"
debug="true|false"
onfailure="inline|exception"
time="true|false">

属性次の属性は、省略可能です。
direction
evaluateonnorows
id
max
name
rows
start
viewasdocuments
debug、onfailure、および time の定義については、「共通の Lotus Domino JSP タグの属性」を参照してください。

インターフェースJSP ページの現在の状態を確認するのに、次のインターフェースを使用できます。
public interface PageInfo {

// Get the current page being processed.

public abstract int getPage();

// Returns the total number of pages for this collection

// (not expensive)

public abstract int getPageCount();

// Returns TRUE if the current page is the first page

public abstract boolean isFirstPage();

// Returns TRUE if the current page is the last page

public abstract boolean isLastPage();

// Returns TRUE if the current page is the only page

public abstract boolean isOnlyPage();

// Returns TRUE if the current page is blank

// (isFirstPage() should be TRUE)

public abstract boolean isEmptyPage();



関連項目