[Logo] Mentawai Forum - Mentawai Web Framework
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 

Forum Read-Only! Check the new site and forum here!

Using the Paginator Tag  XML
Forum Index -> General Comments
Author Message
saoj



Joined: 01/07/2005 09:59:17
Messages: 2846
Location: Rio de Janeiro, RJ
Offline

Example: http://paginator.mentaframework.org/

Sources: http://www.mentaframework.org/examples/PaginatorTag.war

Code:
 <mtw:paginator size="5" value="myList">
 
     <mtw:hasPrevious>
         
         <a href="/HelloPaginator.mtw?page=<mtw:out />"><b>Prev</b></a>  
         
     </mtw:hasPrevious>
     
     <mtw:pageNumbers pagesToShow="3"> <!-- x x x X x x x -->
     
         <mtw:isCurrPage>
             <mtw:out />   <!-- no link for curr page -->
         </mtw:isCurrPage>
         
         <mtw:isCurrPage negate="true">
             <a href="/HelloPaginator.mtw?page=<mtw:out />"><mtw:out /></a>   <!-- show link for other pages -->
         </mtw:isCurrPage>
     
     </mtw:pageNumbers>
     
     <mtw:hasNext>
         
         <a href="/HelloPaginator.mtw?page=<mtw:out />"><b>Next</b></a>
         
     </mtw:hasNext>
     
     <br><br>
     
     <font color="blue">
     
     <mtw:loop>
     
         <mtw:out /><br> <!-- loop through the elements of this page -->
         
     </mtw:loop>
     
     </font>
 
 </mtw:paginator>
 

Sergio Oliveira

 
Forum Index -> General Comments
Go to:   
Powered by JForum 2.1.6 © JForum Team