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

  • Home
  • SEARCH
  • 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 8113563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:52:09+00:00 2026-06-06T02:52:09+00:00

My goal is to produce a table with two header rows. The first with

  • 0

My goal is to produce a table with two header rows. The first with a few column-spanning cells, the second with all 1-cell headers, but with sortBy and filterBy enabled.

<p:dataTable ....  >
  <p:columnGroup type="header">
    <p:row>
      <p:column colspan="3" headerText="my header 1" />
      <p:column colspan="3" headerText="my header 2" />
    </p:row>
  </p:columnGroup>
  <p:column sortBy="#{myBean.var1}" filterBy="#{myBean.var1}" headerText="var1">
    <h:outputText value="#{...var1}" />
  </p:column>
  .
  .
</p:dataTable>

I can get either the columnGroup to show up or the per-column headerText with sortBy and filterBy, but not both. When I mix them, the header components from the per-column header row disappears.

  • 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-06T02:52:11+00:00Added an answer on June 6, 2026 at 2:52 am

    As it turns out, it is possible to nest dataTables via the subTable component. This showcase example demonstrates nesting a subTable in a larger dataTable, there-by achieving filtering and sorting combined with columnGroups in the headers.

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

Sidebar

Related Questions

goal: I have the string 1234432144 I want to only replace the first 2
In this sample database there are two tables, products and prices. The goal is
The goal is to produce the following XML with JAXB <foo> <bar>string data</bar> <bar>binary
My goal is to retrieve a result of the name of column based on
My goal is to achieve delete all recommendations and then insert new. (any online
I would like to split a line such as: name1=value1,name2=value2, .....,namen=valuen two produce two
I have a table Blah with a PK column BlahID and an XML column
Goal: Produce an Excel document with information from 3 associated models that is similar
I do not have much experience in table design. My goal is to create
My ultimate goal for this project is to produce the correct number of active

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.