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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:12:38+00:00 2026-05-25T17:12:38+00:00

I have a CssResource where I want to have some of the css classes

  • 0

I have a CssResource where I want to have some of the css classes “mapped” to methods:

@ClassName("top-table")
String topTable();

But I want to turn off the obfuscation GWT does (while developing at least, for better debugging in firebug, etc).

Is there an easy way to achieve this? I know I can use @external in my css file but then I have to define all my css classes like @external .c1, .c2, .c3, etc…

Something like @external .* would solve my problem but that doesn’t seem to be available at least in gwt 2.0.x

My current solution is to use:

<set-configuration-property name="CssResource.style" value="pretty"/>

But that doesn’t turn off the obfuscation, just makes it prettier 🙂 I know obf is needed to avoid collisions but I don’t have that in my case and would really like to turn off obfuscation

  • 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-25T17:12:39+00:00Added an answer on May 25, 2026 at 5:12 pm

    According to the GWT documentation it is possible to disable ofbuscation in general. From CssResource section “levers and knobs”:

    The configuration property CssResource.style may be set to pretty
    which will disable class-name obfuscation as well as pretty-print the
    CSS content. Combine this with a ClientBundle.enableInlining value of
    false to produce a CSS expression which is amenable to client-side
    editing.

    In my work GWT project, I can see this property is actually set in Resources.gwt.xml (included in gwt-user.jar):

      <!-- This can be used to make CssResource produce human-readable CSS -->
      <define-configuration-property name="CssResource.style" is-multi-valued="false" />
      <set-configuration-property name="CssResource.style" value="obf" />
    

    What is unclear to me is how to override this value, since it is already set. Did you manage to figure that out?

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

Sidebar

Related Questions

i have a css in my GWTApplication which contains several classes in that,I want
I have little issue with CssResource in GWT. I want to change styles of
have 2 questions : A computer with 32-bit address uses 2-level page table (9
I have implemented my own form field as IsEditor<LeafValueEditor<String>> that I'd like to use
Suppose I have a css style like this: .foo a, .foo a:visited .foo a:hover
Have finally got a responsive site working (of a fashion). What I want to
Have some code: using (var ctx = new testDataContext()) { var options = new
Have searched for the answer but no joy, so here goes... I'm working on
Have some validating problems which seem to appear only when using the Auth component.
Have just got a surprise and would appreciate some suggestions. The simple query below

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.