content
Tag previousWindowButton


Displays a button (full link) for scrolling to the previous window page of a scrollable container list.

This tag is part of the Container List Pagination functionality that basically partitions a long list of containers, contained within a container list, into more manageable shorter lists displayed on a per page basis.

Use the step parameter to specify how many pages to step (default 1) and the windowSize to change the default size specified in the template.

Example 1 :

<content:previousWindowButton title="&lt;&lt;Prev" method="post" formName="jahiapageform" />

The above Tag will generate the following URL:

<a href="javascript:changePage(document.jahiapageform, document.jahiapageform.ctnscroll_directoryPeopleContainer,'5_0');"> windowSize_windowStep &lt;&lt;Prev </a>

The javascript changePage method changes the form's ctnscroll_directoryPeopleContainer to '5_10' and submits the form.

Example 2 :

You want use this Tag to generate a simple URL when not using forms (FYI we also include the containerlist tag) :


<content:containerList name="contentList1" title="Content List" windowSize="5" >
   ...
   <content:previousWindowButton title="amp;lt;amp;lt;Prev" />
   ...
</content:containerList>

The above Tag will generate the following URL:

<a href="http://localhost:8080/jahia/Jahia/cache/offonce/pid/7/ctnscroll_directoryPeopleContainer/5_0">amp;lt;amp;lt;Prev</a>


Tag Information
Tag Classorg.jahia.taglibs.button.PreviousWindowButtonTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
titlefalsetruejava.lang.Stringthe caption to display to scroll to the next window page.

Defaulted to "&lt;&lt;Prev".

stylefalsetruejava.lang.Stringbutton's CSS style name to use.

Defaulted to no CSS style at all.

methodfalsetruejava.lang.StringHTTP method to request next window page.

Jahia supports both the HTTP POST and HTTP GET methods for pagination. If you want to implement a Post (form submission) request version, you need to set this attribute to "post". Defaulted to "get".

formNamefalsetruejava.lang.StringThe form name needed to generate the form submit Javascript code.

The value must refer to the current enclosing Jahia Page Form Name. It is mandatory when the method attribute is set to "post". In the example below, the form name jahiapageform is used to generate the following HTML:

<a href="javascript:changePage(document.jahiapageform, document.jahiapageform.ctnscroll_directoryPeopleContainer,'5_00');"> windowSize_windowStep amp;lt;amp;lt;Prev </a>

windowStepfalsetrueIntegerthe pagination window step/offset to use.

Use the step parameter to specify how many pages to step.

Default is "1".

windowSizefalsetrueIntegerthe pagination window size to use.

This redefines the default number of items per page set by the template the enclosing container list tag e.g.

<content:containerList name="contentList1" title="Content List" windowSize="5" >


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.