Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6689905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:34:25+00:00 2026-05-26T05:34:25+00:00

I am trying to implement Pagination in JSF using Tomahawk. When the page is

  • 0

I am trying to implement Pagination in JSF using Tomahawk. When the page is loaded, the table in the first page is populated with data. But, when I click on Next or Prev the table is empty. I don’t see any javascript error in the browser. Following is the code from the jsp. Please let me know if I am missing something:

<t:dataTable id="tableid" value="#{SiteSearchCriteria.siteList}"
        var="item" border="1" rows="5" rowIndexVar="rowIndex"
        rowClasses="trobg1,trobg2">
        <h:column>
            <f:facet name="header">
                <h:outputText value="siteName"></h:outputText>
            </f:facet>
            <h:outputLabel value="#{item.siteName}"></h:outputLabel>
        </h:column>

        <h:column>
            <f:facet name="header">
                <h:outputText value="siteCLLI"></h:outputText>
            </f:facet>
            <h:outputLabel value="#{item.siteCLLI}"></h:outputLabel>
        </h:column>
</t:dataTable>

<t:dataScroller id="dataScrollerId" for="tableid" fastStep="10"
        pageIndexVar="pageIndex" renderFacetsIfSinglePage="true"
        pageCountVar="pageCount" paginator="true" paginatorMaxPages="9"
        immediate="true">
        <f:facet name="first">
            <t:outputText value="First"></t:outputText>
        </f:facet>
        <f:facet name="last">
            <t:outputText value="Last"></t:outputText>
        </f:facet>
        <f:facet name="previous">
            <t:outputText value="Previous"></t:outputText>
        </f:facet>
        <f:facet name="next">
            <t:outputText value="Next"></t:outputText>
        </f:facet>
</t:dataScroller>    
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:34:26+00:00Added an answer on May 26, 2026 at 5:34 am

    The backing bean that I was using was in “request” scope. Hence, the data was not visible when I clicked on “Next”. Changed the scope of backing bean to “Session” and things started to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to implement pagination using multiple searching criteria. Supposed I Have student table.
I'm trying to implement pagination in my Rails 3 app with Kaminari but I'm
Trying to implement AVAudioplayer and get some metering data of the played music, but
I am trying to implement the pagination in php. I am using the Mysql
I am trying implement the Data transformation using Reflection 1 example in my code.
I am trying to implement the previous page functionality for pagination, and I thought
Trying to implement Piwik using REST API over http but need a little help.
I'm trying implement a custom login page to use in my JSF 2.0 application.
trying to implement a dialog-box style behaviour using a separate div section with all
im trying to implement a custom error page, what i want to be able

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.