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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:56:09+00:00 2026-05-20T21:56:09+00:00

I am using UIBinder to make a widget. ui.xml <ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui> <ui:style> .back

  • 0

I am using UIBinder to make a widget.

ui.xml

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
.back { background-color: Skyblue; }
</ui:style>

    <g:HTML>
    <div ui:field="somediv">
        <tr class="{style.back}">
        <td>The background is NOT Skyblue</td>
        </tr>   
    </div>
    </g:HTML>
</ui:UiBinder>

java

public class Test extends Composite {

    interface TestUiBinder extends UiBinder<HTML, Test> {}
    private static TestUiBinder uiBinder = GWT.create(TestUiBinder.class);


    public Test() {
        initWidget(uiBinder.createAndBindUi(this));
    }

Entrypoint:

public void onModuleLoad()
    {
        Test test = new Test();
        RootPanel.get().add(test);
}

The text does not get skyblue color..
However if i add a span element inside my td and do class=”{style.back}”, that works.
Why?

Also, if i try to add a ui:field to my td/tr tags i get a crash:

    java.lang.reflect.InvocationTargetException at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at  
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at  
java.lang.reflect.Method.invoke(Unknown Source) at 
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183) at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:5
10) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at
 java.lang.Thread.run(Unknown Source) Caused by: 
com.google.gwt.core.client.JavaScriptException: (TypeError): this.removeAttribute is not a function
  • 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-20T21:56:10+00:00Added an answer on May 20, 2026 at 9:56 pm

    As @Chris Lercher suggested in the comments, adding a table around the tr’s solved the problem. Closing question..

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

Sidebar

Related Questions

Imagine you created the following simple widget with UiBinder: <!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent> <ui:UiBinder
I'm writing a GWT widget using UIBinder and MVP. The widget's default styles are
I am trying to set a custom style to a GWT CellBrowser widget using
I'm using uiBinder and if I want to have Google Maps widget and suggestbox
How can I add style for Anchor in GWT using UIBinder? I have following
I'm using GWT 2.4 with the MVP pattern, with uiBinder, and a widget: GwtUploader.
I am using UiBinder xml files in a GWT project. The problem is that
I have a layout in Google Web Toolkit using UIBinder involving a TabLayoutPanel .
I am using gwt uibinder. I want to dynamically set values to a field.
We are using GWT & GWTP with UiBinder and I want to use properties

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.