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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:36:12+00:00 2026-05-30T17:36:12+00:00

Its been quite some time since i have started developing web pages using JSF

  • 0

Its been quite some time since i have started developing web pages using JSF but i am still learning most of the stuff. Now I have an interesting question

When I have the values those to be displayed in a data table in the ArrayList and I am adding those ArrayList objects in another array list , so now how will i be able to display them in a data table.

I am doing this since , i need my table to be so dynamic so that i dont know how many columns will i be getting in the result set to be displayed in the page, hece i cannot have a Bean obj for storing my variable values. So i have decided to have something like

ArrayList<ArrayList<String>>

ArrayList<String> - Values for Each row

Does this have a solution that can be provided int he jsf page

  • 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-30T17:36:13+00:00Added an answer on May 30, 2026 at 5:36 pm

    Use either plain HTML with a nested <ui:repeat>

    <table>
        <ui:repeat value="#{bean.rows}" var="row">
            <tr>
                <ui:repeat value="#{row}" var="column">
                    <td>#{column}</td>
                </ui:repeat>
            </tr>
        </ui:repeat>
    </table>
    

    or grab a 3rd party component library which has sort of a <x:columns> tag like PrimeFaces with <p:columns> and Tomahawk with <t:columns>.

    <p:dataTable value="#{bean.rows}" var="row">
        <p:columns value="#{row}" var="column">
            #{column}
        </p:columns>
    </p:dataTable>
    

    Either way, you can even keep the columns in a separate list.

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

Sidebar

Related Questions

I have been working in C# for quite some time but come around this
Its been a while since I had to do some Java/JSP... I have a
it's been quite some time since i last wrote Rails and i've forgotten some
I've been using gcc's Intel-compatible builtins (like __sync_fetch_and_add ) for quite some time, using
I've been thinking quite some time about 'moving on' to MCU programming, but the
I've been looking around for quite some time but I just can't find the
I've been a web developer for quite some time and what has helped me
I've been using CMake for quite some time to generate VS 2008 solutions to
I've been using TortoiseSVN in a Windows environment for quite some time. It seems
I have been using C# for some time now to make a small game,

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.