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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:06:50+00:00 2026-05-27T19:06:50+00:00

My question is pretty basic but cannot find an answer on Google. I do

  • 0

My question is pretty basic but cannot find an answer on Google. I do wonder if I missed something about the ice:column component.

I do use code like :

<ice:panelGrid columns="3">
  <ice:column style="background-color: yellow;">
    <ice:outputText value="..." />
  </ice:column>
  <ice:column>
    // row content
  </ice:column>
  <ice:column>
    // row content
  </ice:column>

  // other rows
</ice:panelGrid>

It seems that the column component has a style and styleClass attribute, however nothing is ever rendered in the HTML.

How do you apply a style to a perticular cell of a table with IceFaces ?

Thanks in advance for the answer.

  • 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-27T19:06:51+00:00Added an answer on May 27, 2026 at 7:06 pm

    Like as standard JSF <h:panelGrid> the <ice:panelGrid> has a columnClasses attribute which allows you to specify a comma-separated list of column classes which are to be applied subsequently on the columns. Also, in standard JSF <h:panelGrid>, the <h:column> is not supported. This is only suppored in <h:dataTable>. Instead, every direct child of <h:panelGrid> is treated as a single column, which can be just <h:outputText> or <h:panelGroup> if you have multiple components which need to go in a single column.

    So, this should do:

    <ice:panelGrid columns="3" columnClasses="col1,col2,col3">
        <ice:panelGroup>row 1 col 1</ice:panelGroup>
        <ice:panelGroup>row 1 col 2</ice:panelGroup>
        <ice:panelGroup>row 1 col 3</ice:panelGroup>
    
        <ice:panelGroup>row 2 col 1</ice:panelGroup>
        <ice:panelGroup>row 2 col 2</ice:panelGroup>
        <ice:panelGroup>row 2 col 3</ice:panelGroup>
    
        ...
    </ice:panelGrid>
    

    which will generate

    <table>
      <tbody>
         <tr>
           <td class="col1">row 1 col 1</td>
           <td class="col2">row 1 col 2</td>
           <td class="col3">row 1 col 3</td>
         </tr>
         <tr>
           <td class="col1">row 2 col 1</td>
           <td class="col2">row 2 col 2</td>
           <td class="col3">row 2 col 3</td>
         </tr>
         ...
       </tbody>
    </table>
    

    You can specify the style in the .col1, .col2 and .col3 classes the usual way.

    .col1 {
        background: yellow;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pretty basic question, but I cannot find the answer online without
This is a pretty basic question but I can't find a good answer for
This is probably a pretty basic question, but just something that I wanted to
This has to be a pretty basic question but I cannot for the life
This is probably a pretty basic question, but just something that I wanted to
Question is probably pretty basic, but can't find out what's wrong (and it leads
This seems like a pretty basic question but I unfortunately don't know the answer
This is a pretty basic question, but I can't seem to find it. It
this is a pretty basic question but I can't seem to get it right.
I think this is a pretty basic question, but after Googling around I can't

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.