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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:15:03+00:00 2026-06-15T07:15:03+00:00

I have a GWT 2.4 application which has many UiBinders within different client packages,

  • 0

I have a GWT 2.4 application which has many UiBinders within different client packages, set out the same as below:

  • com.xxx

    • project.gwt.xml
  • com.xxx.client

    • entrypoint.java
    • stylesheet.css
  • com.xxx.client.package1

    • Page1.java
    • Page1.ui.xml
    • stylesheet.css
  • com.xxx.client.package2

    • Page2.java
    • Page2.ui.xml
    • stylesheet.css
  • com.xxx.client.package3

    • Page3.java
    • Page3.ui.xml
  • war

    • index.html
    • global_stylesheet.css

In my ui.xml files I am having to reference the stylesheet.css file which is within the same package as the UiBinder. I’ve been trying to reference the global_stylesheet.css file but am having no luck. Ideally I would like to be able to still use the {style.xxx} method of applying a style.

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

    You can use a central ClientBundle with a CssResource for @Source("global_stylesheet.css"), and reference it from your UiBinder templates:

    <ui:with type="mypackage.client.MyClientBundle" field="myClientBundle"/>
    

    So you can use it like:

    <g:Label addStyleNames="{myClientBundle.myCssResource.example}"/>
    

    But you would have to put global_stylesheet.css somewhere in your classpath – otherwise it cannot possibly be compiled.

    Also, don’t forget to call ensureInjected() on your CssResource.

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

Sidebar

Related Questions

I have an application which is packaged as a .war file. It has GWT
I have an OSGi application which has a command line interface and a GWT
I have a GWT application which I would like to run from within a
I have a grid in my GWT application there are columns and rows which
I have following architecture in my application. Client (GWT) <--calls--> Servlet <--calls--> Service <--calls-->
I have a GWT application which is secured by Spring Security. I have a
We have a GWT application which draws some resources from a separate servlet via
I would like to have my GWT application use different constants when debugging or
I have this GWT application which login/logout to a server. The server side is
My GWT application creates text areas, each of which must have an ID in

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.