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 4014394
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:29:30+00:00 2026-05-20T09:29:30+00:00

I displaying multiple p:datatable ‘s through ui:repeat , the following code snippet illustrates what

  • 0

I displaying multiple p:datatable ‘s through ui:repeat, the following code snippet illustrates what I am doing:

<ui:repeat id="searchTables"
    value="#{searchBean.mapKeys}"
    var="mapKeys">
         <p:dataTable id="recordTable"
            value="#{searchBean.resultMap[mapKeys].resultList}"
            var="recordTable"
            paginator="true"
            rows="10">
                 <f:facet name="header">
                      <h:outputText value="#{searchBean.resultMap[mapKeys].name}"/>
                 </f:facet>
                    <p:columns value="#{searchBean.resultMap[mapKeys].resultColumns}"
                               var="column"
                               columnIndexVar="colIndex">
                        <f:facet name="header">
                            <p:outputPanel>
                                #{column.header}
                            </p:outputPanel>
                        </f:facet>
                        <h:outputText value="#{recordTable[column.property]}"/><br/>
                    </p:columns>
         </p:dataTable>
 </ui:repeat>

I need each individual datatable to have its own paginator, however when my page is displayed only the first datatable gets the paginator and this paginator controls all the other displayed DataTables pages..

Thanks for your attention!

  • 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-20T09:29:30+00:00Added an answer on May 20, 2026 at 9:29 am

    The only way I found was to use two p:datatable tags, the parent one with only one column. I couldn’t make it work with p:dataList. I guess p:dataList is extending the same bogus class.

    Should work with this:

    <p:datatable id="searchTables"
        value="#{searchBean.mapKeys}"
        var="mapKeys">
        <p:column>
             <p:dataTable id="recordTable"
                value="#{searchBean.resultMap[mapKeys].resultList}"
                var="recordTable"
                paginator="true"
                rows="10">
                     <f:facet name="header">
                          <h:outputText value="#{searchBean.resultMap[mapKeys].name}"/>
                     </f:facet>
                        <p:columns value="#{searchBean.resultMap[mapKeys].resultColumns}"
                                   var="column"
                                   columnIndexVar="colIndex">
                            <f:facet name="header">
                                <p:outputPanel>
                                    #{column.header}
                                </p:outputPanel>
                            </f:facet>
                            <h:outputText value="#{recordTable[column.property]}"/><br/>
                        </p:columns>
             </p:dataTable>
        </p:column>     
     </p:dataTable>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some DataGridViews each displaying one DataTable from a DataSet with multiple DataTables.
When displaying the value of a decimal currently with .ToString() , it's accurate to
I have a map displaying multiple annotations. I'd like to mimic the behavior of
I have a grid displaying some information and when I select multiple rows and
I have a paging UIScrollView that pages through multiple full screen images. I am
I'm currently successfully displaying multiple layers using OpenLayers (Vector and WMS). My application allow
My SQL query joins on multiple tables, and because of this it is displaying
I have a UIWebView displaying content of multiple pages in length. The problem is
I'm displaying a table with multiple rows and columns. I'm using a JQUERY plugin
I'm displaying a view with multiple full-sized (768x1024) images on iPad web application. Images

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.