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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:16:15+00:00 2026-05-11T03:16:15+00:00

In JSF is it possible to have a datatable displays records as follows? [Name

  • 0

In JSF is it possible to have a datatable displays records as follows?

      [Name  ][Last Name][Age] 1.    John     Doe         20       Extra info on record 1  2.    John     Smith       20       Extra info on record 2 

Thank you

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T03:16:16+00:00Added an answer on May 11, 2026 at 3:16 am

    I’m sure there are a number of ways you could do this.

    If you don’t mind nesting tables, you can use the panelGrid tag and CSS.

    View:

    <f:view>     <h:dataTable value='#{peopleBean.people}' var='row'>         <h:column id='column1'>             <f:facet name='header'>                 <h:panelGrid columns='3' columnClasses='cell,cell,age'>                     <h:outputText value='First Name' />                     <h:outputText value='Last Name' />                     <h:outputText value='Age' />                 </h:panelGrid>             </f:facet>             <h:panelGrid columns='3' columnClasses='cell,cell,age'>                 <h:outputText value='#{row.firstname}' />                 <h:outputText value='#{row.lastname}' />                 <h:outputText value='#{row.age}' />             </h:panelGrid>             <h:outputText styleClass='extra' value='#{row.extraInfo}' />         </h:column>     </h:dataTable> </f:view> 

    Stylesheet:

    TABLE {     width: 100%; }  TABLE TR TD {     text-align: left; }  .cell {     width: 40%; }  .age {     width: 20%; }  .extra {     background-color: silver;     padding: 4px;     display: block;     width: 100%; } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have the JSF update a component that's placed outside the
I am wondering if it is possible to have a JSF handler and some
I have JSF with Richfaces app on Glassfish server. Is it possible to make
Is it possible to have panel popup window in JSF 1.1 ? I would
I have a problem using <pre> tag inside <td> . I have JSF datatable
Is it possible to call another JSF component from within a custom component (as
Is it possible to test for enum equality in JSF? E.g. where stuff is
I'm trying to integrate Plupload with JSF in the most independent way possible, for
In JSF + RichFaces, I have an inputText and a button, How can I
I have a JSF page that is included in other JSF pages (basically a

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.