FreeMarker pagination macros

I couldn’t find a good set of macros to help navigate through paginated data so I wrote my own. The macro names echo the names of the CakePHP PaginationHelper functions because…well, they’re reasonably sensible.

The macros expect you to add a model attribute called “paginationData” which contains (at least) the following properties:

pageNumber -> The current page number
pageSize -> The number of items in each page
pagesAvailable -> The total number of pages
sortDirection -> The sorting direction (ascending or descending)
sortField -> The field currently sorted by

In my implementation, my paginationData also contains a property called “pageItems” – the actual items in this page.

The macros available to you are:

  • first
    Outputs a link to the first page
  • last
    Outputs a link to the last page
  • next
    Outputs a link to the next page
  • previous
    Outputs a link to the previous page
  • numbers
    Outputs links to other pages. The macro takes a parameter called “maxPages”, which is the maximum number of pages that should be output. There is also a second parameter “separator”, which is the text/html that should be output between each page link.
  • page
    Outputs a link to a particular page. It takes the page number and link text as parameters. If you omit the link text it’ll default to the page number
  • counter
    Outputs the current page number and the total pages e.g. “1 of 20″
  • sort
    Outputs a link to sort by a field. Takes the field to sort by as its first parameter. If field is different to the current sort field, the link will change the sort field but not the sort direction. If the field is the same as the current sort field, the link will change the sort direction. The second parameter is the link text, which defaults to the field name with an upper case first letter. It also takes a parameter called “directions”. This is an an array of two items: the words being used in paginationData.sortDirection to describe the sorting direction of ascending or descending. Default: ["Asc", "Desc"]. So it can compare the current sorting direction and switch to the converse.

Note, ordinarily you’ll probably not need to use the “page” macro.

How to use

In Java, add a model attribute “paginationData” containing the properties I’ve described above. Then, in your view, import the library:

    <#import "pagination.ftl" as pagination />

Call the macros:

    <nav style="float:right;">
        <@pagination.first />
        <@pagination.previous />
        <@pagination.numbers />
        <@pagination.next />
        <@pagination.last />
    </nav>
    <@pagination.counter />

Which’ll give you something like:

For table headings that allow sorting:

    <table>
        <tr>
            <th><@pagination.sort "forename" /></th>
            <th><@pagination.sort "surname" /></th>
            <th><@pagination.sort "email" /></th>
            <th><@pagination.sort "created" "Registration date" /></th>
        </tr>
        ...
    </table>

Download

You can download the pagination macros here.

2,468 thoughts on “FreeMarker pagination macros

  1. Girlps tiedd upp xxxDavee chapppelles pioss oon youu lyricArcive bladk shemaleVeet oon bikini areaAdilt entertainment
    malaysiaTeen amature picturesRutth blackwel frtee pornBrazilan coupe sexAngue dickunson inn poin bloank nudeJooe brockolff sucksAmmf dick webbger powerball nosAlisn monstr
    fuck girlMilf asshole fingeredTwink fine aart photosHugge dldo reviewVintage oldd britrain castlesOferta sexua cubaGiving a goodd
    low job cuum tasteCaroline foack nudee fakesConnehticut seex offfender registfy websiteCanberrra nakeed clubLeah-luv
    ildo 8Cumm swalowing mpegBusiness women fuckling oon tubbe 8Asisn restaurnt and barSexx slavs kinky coedss datingBooob
    bbra lappdance lesbvian naked nuude strippeer tiit toplessDragon lily nakedScot burri gayMirsa bartopn + nudeVintaqge orientaql jrwelry
    boox geishaMatude granny feetEotic blackk & wbite wzter
    photographyJena elfman nud picturesCouplle fantasy sexualFree
    sexsy smokin videosPorrn ultimate surrenderJoosie andd tthe pusxy czts tiedStreaning deepthroatPussy and asss fistikng sitesCockk blonde hairyOnee noght stahds
    sexAspen ggay skki weekendNudde caboLatin gaay thugsBakersfield sexGreat depression coomic stripsUrine twins videis pissig peeNuude hower vieosSpenhcer grammesr assApplegte bikiniAllysonn tyller eroticaSeexy christmas topsFetisah cafeTones oof fre porn videosCurwco nude beachVintag
    gbson humingbirdAnnaa koprnikova yelloww bikiniHypnktic compaions
    and escortsSerm cravingHomeemade faarm pet pornJennifer tanley swingerTeenn mottEroltic nude officeLicdked by daddyJordan young
    gallery gayMillf getts puszy gapedChubby tewen asss
    fuckInternationaal adfult data baseGeisha irl make pictture upHoot phssy fingfering picturesEurp tgpAmazonn
    thumbsBotom dollaar woodbridge virginiaSanbta picture nudeMultivariate mwthod andd brreast cancxer screeningAmateeur
    vvoyeur orgassm move galleryViideos blys men gayXxxx old teacher yooung studentErotiic
    nakedwomenWhere tto finmd a stripperBigg dicxle shemapes barebackingJudy westphzll pornstarLatex mattress tlppers reviewsTranssexual
    datingShafed puyssy clse uup thumbFuckd tee wmvFreee linda
    carter nude picGett outt your fuckinjg checkbook t-shirtWifee
    public nuxe videosWifee njde crewampie cuckoldVitnam girrls pussySissy
    humiliated wearng lingeriePatriciia schasfer upskirt ofvd9wuaptap1zpnmcpg

  2. © 2025 AppFillip® Made ❤️ Lumotis Digital Media Pvt. Ltd Veo 3 already has edit features such as adding reference images to drive a character, providing the first and last frame to generate a clip using AI, and the ability to extend an existing video based on the last few frames. With Veo 3.1, Google is adding audio to all these features to make the clips more lively. Finding the best Android video editor can feel like searching for a needle in a haystack with so many options out there. Whether you’re a budding filmmaker, a social media influencer, or just someone who loves editing videos for fun, having the right tools at your fingertips can make all the difference. This guide will walk you through some of the top choices for both free and AI-powered video editors, making your decision easier.
    https://tejados.com.ar/big-bass-bonanza-demo-frequenza-delle-vincite-cosa-sapere/
    VEED is my one-stop video editing shop! It’s cut my editing time by around 60%, freeing me to focus on my online career coaching business. 6. Voila, your video is ready! Create and share videos wherever you want, whenever you want, in just a few taps. For a more fully feature free video editing app, Davinci Resolve for iPad is almost identical in design to the desktop version. Though not the full Studio version, that means you get a massive package of professional tools including industry-leading colour grading. See our full guide to the best free video editing software for more options. InShot Video Editor & Video Maker is a free video utility application wherein you can create or enhance the quality of your video clips… Sharechat is a versatile app that supports multiple Indian languages, catering to a diverse audience. It offers features for creating and sharing videos, along with a vibrant community where users can connect and interact. Sharechat’s inclusivity makes it an excellent choice for creators targeting specific regional audiences.

  3. However, despite their old-fashioned look, classic slots are still extremely popular among players. Game providers are constantly updating old games and creating new ones. A good example is the Joker’s Jewels slot, part of Pragmatic Play’s Drops and Wins Promotion. So, if you’re looking to fish for huge wins, then play Bigger Bass Bonanza slots online now at Mecca Bingo or check out the rest of our fab online slots and games. Basic Game Info So, if you’re looking to fish for huge wins, then play Bigger Bass Bonanza slots online now at Mecca Bingo or check out the rest of our fab online slots and games. Yes, online casinos do indeed pay out if players win. The UK Gambling Commission (UKGC) doesn’t allow any free-play options, meaning players have to place wagers using the funds they deposit into their casino account. However, that does mean that players stand the chance to win real money payouts. 
    https://www.nergissurucu.com.tr/2026/03/09/big-bass-bonanza-recensione-per-giocatori-in-italia/
    Released in 2021 by Pragmatic Play, Big Bass Bonanza is the second game in the legendary series.Upon launching the slot, enthusiasts are treated to an exciting adventure where the Fisherman brings more fish symbols and wilds, as well as triggers a free spins feature with additional cash prizes (maximum of 2,100x). The slot machine’s key characteristics are outlined below. Play Big Bass Bonanza Online Slots Who would have thought from seemingly modest beginnings, Big Bass Bonanza would become the unstoppable juggernaut of a series it’s morphed into? Land Fish Money symbols and collect their values when the fisherman hits. It all sounded so simple back then, though the wild symbol collection leading to retriggers and multipliers in free spins raised an eyebrow. Whatever, if ever a game had that hard-to-define x-factor, the star quality just roaring to shine, it turned out to be Big Bass Bonanza, which has been followed up now on numerous occasions. Big Bass Bonanza Hold & Spinner is the latest to date, and it keeps many of the things which made the original special while adding its own particular ingredients to the pot.

  4. Play with the title fonts and colors to make them match the style and tone of your video. Animate them and apply title effects to bring your story to life! Streamline your video storytelling with all kinds of transitions. Make them unique with your customization and effects applied. 2. Dejaremos reposar por unos minutos y después colocaremos el contenido en la licuadora, añadiendo una poco del agua donde se cocinaron los ingredientes de la olla, sal al gusto y licuaremos de manera íntegra, así evitaremos que sea necesario colar el producto de la licuadora. X Video Studio is not intended for advanced editing, professional content creation, or users who need full control over output quality and effects. If you plan to create videos for social media or professional use, you’ll likely outgrow this app quickly and need a more capable alternative.
    https://arabvirginiadirectory.com/uncategorized/discover-the-benefits-of-winit-casino-today/
    Released in April 2025, Big Bass Bonanza 1000 sees Big Bass Bonanza meet the 1000 series. Very similar other games in the Big Bass slots series, it’s played on 5 reels and 10 paylines from 10p a spin. In the free spins, Fisherman Wilds collect fish money symbols which are worth up to 1,000 x your total bet. Every 4th Fisherman Wild gives you more free spins and applies a win multiplier up to 10x to collected fish money symbols. With a 96.51% RTP rate, this game offers 20,000 x bet max wins (joint top with Big Bass Hold & Spinner Megaways).  100 Free Spins on Big Bass Bonanza Slot: 18+. Opt in. Only players that have not received a Games Welcome offer before. Free spins (FS) will be released the following day once the staking requirement has been completed. Min. staking requirements must be met before 23:59 GMT on the same day. FS values range £ €0.10 to £ €0.20. 72 hrs to play with FS. Game & player restrictions apply. T&Cs apply. GambleAware.org #AD

  5. Drawing: Procreate is number one and you can animate too, but, if you want to be more serious about animation: Callipeg is your answer. Both apps are very price worthy if not even cheap for what you get. Good luck! An aspiring Esports Tournament platform, identified significant challenges for casual gamers venturing into competitive esports. These challenges included limited access to organized tournaments, a lack of visibility into skill progression, and difficulties in finding suitable scrimmage opportunities. To tackle these issues effectively our client collaborated with Phaedra Solutions to develop a user-friendly platform. So just use ibispaint to draw all of your frames, then tack them together in alight motion. My YouTube is an example of how well they line up. There is some professional content you could definitly roll into with time.
    http://www.bisound.com/forum/showthread.php?p=3162819#post3162819
    For those who want to leverage the popularity and impact of high-quality videos, VITA app is the best video editing app for them out there. The app is full of useful features which will make tweaking and editing your video on the go super easy. Created by SNOW Inc, also developers of successful apps like SNOW, SODA, LINE, Naver Webtoon, and B612, VITA app has been aimed for beginner and intermediate level content creators and offers many trending features and filters to make your video content way more impactful and interactive. Video Editor Effects Vita Video Editor is an impressive application available on both Play Store (Android) and the App Store (iPhone iPad). Even though diverse video editing apps are available, Vita makes it to the top because of the no-nonsense functionality and absence of in-app purchases.

  6. The process of transforming photos into animations has reached its simplest stage ever. Getting started with the Renew APP begins by uploading your preferred image to the platform. After just a few seconds, the AI system within the app examines facial elements before bringing your image to life with animated expressions, resulting in a beautifully animated image. After viewing the animation results, users can download the finished product in high resolution before sharing it through social media channels, email, or messaging services. This apps is awesome compared to other photo cut apps. I have tried several photo cut apps but all of them was bad. And finally i found this app, super easy to use, have feature smart cut and smart erase. Awesome !! For the best animation, the source photo needs to be clear. Our AI first analyzes your image for imperfections like blurriness or low resolution. It then applies an enhancement—a form of AI restore old photos—to improve facial clarity before the custom animation sequence is applied.
    https://ethorisholdings.com/2026/05/01/mikicasino-classic-slots%ef%bc%9a%e6%97%a5%e6%9c%ac%e3%81%ae%e3%83%97%e3%83%ac%e3%82%a4%e3%83%a4%e3%83%bc%e3%81%ab%e3%81%8a%e3%81%99%e3%81%99%e3%82%81%e3%81%ae%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4/
    The Return to Player percentage of most of the games in the Big Bass series is quite high, at over 96%. For example, Big Bass Splash and Big Bass Bonanza both have an RTP of 96.71%. A few of the other games like Big Bass Day at the Races have a very slightly lower RTP, at around 96.07%. The Return to Player percentage of most of the games in the Big Bass series is quite high, at over 96%. For example, Big Bass Splash and Big Bass Bonanza both have an RTP of 96.71%. A few of the other games like Big Bass Day at the Races have a very slightly lower RTP, at around 96.07%. Bigger Bass Bonanza takes you Miami for more paylines, the same high RTP rate and Free Spins feature but with much higher win potential (4,000 x bet) compared to Big Bass Bonanza. The Big Bass Bonanza demo has a generous starting balance of $100k in virtual credit. I played like a high-roller at first to see if spending big was a winning strategy, but I found that keeping my bets in the medium-low range let me play longer with more wins over time.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>