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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:48:09+00:00 2026-06-13T22:48:09+00:00

If I have the following class com.mywebapp.client.ui.MyWidget : public class MyWidget extends Composite {

  • 0

If I have the following class com.mywebapp.client.ui.MyWidget:

public class MyWidget extends Composite {
    interface MyWidgetUiBinder extends UiBinder<Widget, MyWidget>{}
    private static MyWidgetUiBinder uiBinder = GWT.create(MyWidgetUiBinder.class);

    ...
}

And it’s corresponding UiBinder:

<!-- MyWidgetUiBinder.ui.xml -->
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'>
    <!-- ... -->
</ui:UiBinder>

Then:

  1. Where (what package or folder) does MyWidgetUiBinder.ui.xml go? Does GWT allow you to make this configurable or does it require that you place it somewhere specifically?
  2. How granular should UiBinder snippets be? For every Widget? For every display region? 1 per “page”/screen?

Thanks in advance!

  • 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-13T22:48:09+00:00Added an answer on June 13, 2026 at 10:48 pm

    UiBinder looks for a file named after the enclosing class of the interface (if any, otherwise the interface name), in the same package as that class.

    In your case, it’ll look for a com/mywebapp/client/ui/MyWidget.ui.xml.

    This is the default, and can be overridden using @UiTemplate. See https://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinder#Apply_different_xml

    As for the granularity, UiBinder templates should be kept an implementation detail of a widget.

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

Sidebar

Related Questions

In my GWT app I have the following model class: import com.google.gwt.user.client.rpc.IsSerializable; public class
I have the following Model class: package com.swaranga.model; public final class Book { private
Code I have the following class with a member interface: package com.example.withinterface; public class
I have the following interface defined to expose a .NET class to COM: [InterfaceType(ComInterfaceType.InterfaceIsDual)]
I have following class public class ButtonChange { private int _buttonState; public void SetButtonState(int
I have a following class public class MyHttpClient { private static HttpClient httpClient =
I have the following class: import org.apache.commons.beanutils.BeanUtils; import com.thoughtworks.xstream.XStream; ... public class MyBean {
I have the following class in Java package com.artifex.mupdf.data; public class FzTextSpan { FzRect
I have following class: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations={classpath:/com/home/app/Home-ctx.xml}) public class LoginDetailsTest { public static void main(String[]
I have following code: public class reader extends Activity { WebView mWebView; String mFilename;

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.