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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:31:39+00:00 2026-05-19T14:31:39+00:00

I am currently trying to use GWT’s UIBinder functionality, but without success. I have

  • 0

I am currently trying to use GWT’s UIBinder functionality, but without success. I have read the documentation several times, but it does NOT contain the full story. Maybe you can help me.

Here is what I know so far:

1) I need to create e.g. a HelloWorld.ui.xml file with some widget layout in.
2) I need to create a corresponding HelloWorld class.

Here is what I can’t find info about:

A) Where do I put the HelloWorld.ui.xml file, to enable GWT to find it?

B) How to I add my HelloWorld component to e.g. a panel?

The documentation is very scarce, and definately written by someone who already knows too much about GWT to see, what a newbie doesn’t know.

  • 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-19T14:31:40+00:00Added an answer on May 19, 2026 at 2:31 pm

    A) You need to put the HelloWorld.ui.xml file in the same package as the widget class which contains the logic for that ui.xml file. The class name should be HelloWorld (for sake of simplicity I say you need to use the same name, but it’s possible via code to use a different name for the ui.xml file.)

    B) Your HelloWorld class should be a class extending a widget. Just like any ‘normal’ widget it can than added to any panel.

    Here is the code to bind the HelloWorld.ui.xml to in your HelloWorld widget class:

    public class HelloWorld extends Composite /*or extend any widget you want*/ {
        //This defines an interface that represents this specific HelloWorld.ui.xml file.
        interface MyUiBinder extends UiBinder<Widget, HelloWorld> {}
    
        // This code is for GWT so it can generate the code from your HelloWorld.ui.xml
        private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
    
        //Constructor
        public HelloWidgetWorld() {
            // This binds the HelloWorld.ui.xml with this widget
            initWidget(uiBinder.createAndBindUi(this));
            ...
        }
    
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently use VS 2008 Professional, but I'm trying to get Team System Developer
I'm currently trying to use the jquery find method on an object twice but
I am currently trying to use NAnt and CruiseControl.NET to manage various aspects of
I'm currently trying to read in an XML file, make some minor changes (alter
I'm trying to use a ClientBundle in my GWT application to make multiple images
I have a GWT application for which I'm trying to write some tests using
I'm currently trying to use a certain SDK that has me loading functions off
I'm currently trying to use the YouTube API as part of a jQuery plugin
I am currently trying to use the CloudDrive (Powershell) sample that comes with the
I am currently trying to use a web service I developed within an Integration

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.