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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:29:49+00:00 2026-06-10T05:29:49+00:00

<table id=tbl cellpadding=5 cellspacing=0 border=0 class=display style=padding-top: 10px;width:100%> <thead> <tr> <th width=20%>Emp No</th> <th

  • 0
<table id="tbl" cellpadding="5" cellspacing="0" border="0" class="display" style="padding-top: 10px;width:100%">
    <thead>
       <tr>
            <th width="20%">Emp No</th>
            <th width="15%">title</th>
            <th width="20%">Name</th>
            <th width="10%">shift</th>
        </tr>
    </thead>
    <tfoot>
         <tr>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th> 
            <th></th>
        </tr>
    </tfoot>
    <tbody style="cursor:pointer;">
        Yeh aik arzi tehreer hai
    </tbody>
</table>

When I started to convert this code for my JSF app I found that I can use either <h:dataTable> or <h:panelGrid> because both are use here as an alternative of table in html.So first thing which I want to ask is what should I use here?
2ndly how can I handle <thead> , <tfoot> and <tbody>as I didn’t find their alternate in JSF.So please can anyone put some effort to help me for this
Thanks

  • 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-06-10T05:29:51+00:00Added an answer on June 10, 2026 at 5:29 am

    <h:dataTable> is a good choice if you have (in your backing bean) a set of objects you need to display. For example if you have a List of object Employee (with Id, Name, Surname, etc.) then is the best choice.

    Here you can find an example of how to use dataTable.

    <h:panelGrid> is a good choice if you have layout various elements in an certain way. One case, is when you have to split the space in two columns of 80% and 20% respectively.
    Though, ‘I’ suggest to use (panelGroup) for this purpose see http://www.w3.org/2002/03/csslayout-howto

    Edit: With the <h:dataTable> For the header, footer, etc. you have to use the tag <f:facet />
    see Multiple Footer Rows in a JSF dataTable

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

Sidebar

Related Questions

I have a table in my page as below; <table id=tbl cellpadding=0 cellspacing=0 style=width:
everything works perfect bar the div 'hidden-table' not showing, if i remove the 'style:display:none'
I have the following data on a table tbl Admission : Date and Time
I have a table that contains intervals: CREATE TABLE tbl ( user_id: INTEGER, start:
I've created a table like this : create table tbl( address varchar(5000)); If i
I have NH mapping public class TblContentMap : ClassMap<TblContent> { public TblContentMap() { Table(tbl_content);
I am currently working on a MySQL query that contains a table: TBL:lesson_fee -fee_type_id
I have a column c in table tbl which contains the following values. Tue,
I want to insert top 20 ROWS from a table tbl_A in db_A to
I have a table tbl with 3 columns imp_col, data1, data2 where imp_col's type

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.