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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:54:07+00:00 2026-06-13T07:54:07+00:00

I have datatable with multiple checkbox selection (PF 3.3.1). I’ve defined column: <p:column selectionMode=multiple/>

  • 0

I have datatable with multiple checkbox selection (PF 3.3.1). I’ve defined column:

<p:column selectionMode="multiple"/>

I would like add some text or icon to header and I tried with headerText column attribute and with facet:

<f:facet name="header">
    <h:outputText value="Header text" />
</f:facet>

But it doesn’t work.
It is possible to modify header of checkbox selection column?

  • 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-13T07:54:08+00:00Added an answer on June 13, 2026 at 7:54 am

    In case you want that feature badly and don’t mind to use jquery, You could do something like

    I tested it on primefaces shocase and it works (run these command at the console)

    $("<span class='someClass'>Hellow</span>").insertAfter($('#form\\:multiCars thead tr:eq(2) th').find('.ui-chkbox-box'))
    

    note that #form\\:multiCars should be changed with your table id

    and tr:eq(2) refers to the third row in the table , cause in showcase the row with the headers is third

    to change the width of that selection column you can use

    $($('#form\\:multiCars thead tr:eq(2) th')[0]).css('width',100)
    

    I’m aware of the fact that its waaaay ugly , but it works 🙂

    Also you will have to run this script after each ajax rendering of the table

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

Sidebar

Related Questions

I've a datatable which has a single text column 'Title' which can have multiple
I have a Datatable in my C# program that I would like to INSERT
I have some DataGridViews each displaying one DataTable from a DataSet with multiple DataTables.
I have a <ice:dataTable> and I want to add a checkbox to each row.
I´ve implemented a datatable in JSF with a column with a attribute selectionMode=multiple. Everything
I have a datatable that contains rows of transaction data for multiple users. Each
I have datatable with column name tag and 100 rows of data.I need to
I have a DataTable MyDT like below: string MyConString = SERVER= + sConfig_hostname +
I have a datatable with user information and a column called 'Bits'. There is
Recently I switched to mojarra from myfaces and noticed that primefaces datatable checkbox multiple

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.