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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:37:05+00:00 2026-05-23T15:37:05+00:00

I created a CellList in my entry point. Now I want to style it.(

  • 0

I created a CellList in my entry point. Now I want to style it.( Changing the color of selected cell from blue to dark black )

In my knowledge, I only need to override the style of cellList, choose the selected one and change the background color (and then save inside the module.css)

So this is what I came with.

@sprite .cellListSelectedItem {
/*gwt-image: 'cellListSelectedBackground';*/
/*BEFORE : background-color: #628cd5;*/
background-color: #2D2D2D;
color: white;
height: auto;
overflow: visible;
}

However everytime I select a cell, it still displaying old color (#628cd5). Anything I did wrong?

And oh yes, I cleaned the project and restarted the server-and also clear browser cache.

  • 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-23T15:37:05+00:00Added an answer on May 23, 2026 at 3:37 pm

    You need to tell GWT to use the new styles — simply adding them to your module CSS file isn’t going to be enough:

    table = new CellTable<FooType>(12,
        CellTableResources.INSTANCE, keyProvider);
    

    CellTableResources.INSTANCE should be a Resource bundle instance that extends the CellTable Resource bundle. Something like:

    import com.google.gwt.core.client.GWT;
    import com.google.gwt.resources.client.ImageResource;
    import com.google.gwt.resources.client.ImageResource.ImageOptions;
    import com.google.gwt.resources.client.ImageResource.RepeatStyle;
    import com.google.gwt.user.cellview.client.CellTable;
    import com.google.gwt.user.cellview.client.CellTable.Style;
    
    public interface CellTableResources extends CellTable.Resources {
    
      public static CellTableResources INSTANCE = GWT.create(CellTableResources.class);
    
      @Source("footer_bg.png")
      @ImageOptions(repeatStyle = RepeatStyle.Both, flipRtl = true)
      ImageResource cellTableFooterBackground();
    
      @Source("header.png")
      @ImageOptions(repeatStyle = RepeatStyle.Horizontal, flipRtl = true)
      ImageResource cellTableHeaderBackground();
    
      @Source("table_head_bg_left.png")
      @ImageOptions(repeatStyle = RepeatStyle.None, flipRtl = true)
      ImageResource cellTableHeaderFirstColumnBackground();
    
      @Source("table_head_bg_right.png")
      @ImageOptions(repeatStyle = RepeatStyle.None, flipRtl = true)
      ImageResource cellTableHeaderLastColumnBackground();
    
      @Source(CellTableStyle.DEFAULT_CSS)
      Style cellTableStyle();
    }
    

    And then of course the same sort of thing for CellTableStyle:

    import com.google.gwt.user.cellview.client.CellTable;
    
    public interface CellTableStyle extends CellTable.Style {
    
       String DEFAULT_CSS = "path/to/your/new/CellTable.css";
    
       String cellTableCell();
    
       // ....
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CellList that I want to style. I want to change the
Created .NET WCF service, tested it - works. Generated schemas from Data and service
I created a PHP Drop Down which is populated from a MySql Database and
Created a new project from the Tab Bar Application template, how can I access
Created a test app using Eclipse to get the authToken from one of my
I have working on CellList for weeks now and I find it owesome. Those
I created a solution using the previous VS now I have opened this Solution
I created a div tag with min-height and gave background color 'red'. but on
Created a button, now tried to add it to the screen and im getting
Having created my first iOS app as part of my MSc project I now

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.