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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:35:31+00:00 2026-06-10T08:35:31+00:00

I have created two java class with UIBinder in GWT application. I want to

  • 0

I have created two java class with UIBinder in GWT application.
I want to navigate one page to another page with help of common method which is declared in EntryPoint class.

But, I can’t access method of EntryPoint class on Button Click Event of UIBinder class.

My Code:

HelloUIBinder hb;
@UiField Button btnLogin;

public Test2() {
    initWidget(uiBinder.createAndBindUi(this));

    btnLogin.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            // TODO Auto-generated method stub

            strEmail = txtEmail.getText().toString();
            strPass = txtPass.getText().toString();

            Window.alert(strEmail);
            Window.alert(strPass);

            hb.onLogin(strEmail, strPass);
        }
    });
}

In HelloUIBinder Class,

Method for Login:

public void onLogin(String email, String pass)
{
    Window.alert(email);
    Window.alert(pass);

    if(email == "abc@yahoo.com" && pass == "abc123")
    {
        RootPanel.get().clear();

        tp = new TestPage();
        RootPanel.get().add(tp);

        animationHelper.goTo(tp, Animation.SLIDE);
    }
    else
    {
        Window.alert("Authentication Failed");
    }
}

But, while this method I’m getting UmbrellaException Error message.
If I would write same logic within UIBinder class then it would be working fine condition checking.

Now I want to use method from different class by use of class object.

Does anyone have idea ?

Please help to solve this error for calling method from different class.

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-10T08:35:32+00:00Added an answer on June 10, 2026 at 8:35 am

    You should post your stack trace from the Umbrella exception and possibly your UIBinder Template.

    I would really recommend using place change events and history mappers to do activity changes. You should take a look at the videos by Ray Ryan

    Google I/O 2009 – Best Practices for Architecting GWT App
    http://www.youtube.com/watch?v=PDuhR18-EdM

    Google I/O 2010 – Architecting GWT apps
    http://www.youtube.com/watch?v=M5x6E6ze1x8

    We have been using the MVP and place history for many of our projects and it works exceptionally well. You can navigate with a a simple or using the placeContorller.goTo(new Place()); method. This also enable bookmarks and back button to work correctly.

    The other option is that you can construct a ClientFactory singleton implementation in your entry point and use it to handle simple navigation events. But if your application is going to get more complicated in the furture placeControllers are the way to go.

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

Sidebar

Related Questions

I have created two WindowSurface (WPF), and I want to navigate betwen them. I've
I have created two DbContexts, one is for application configuration, the second is for
I have created two forms in my Windows Application. One Form acts as a
I have created two viewController classes such that one is superclass of another.i have
I have an application which consists of two activities/screens and a java class from
I have two Java class hierarchies that share a common ancestor and implement a
I have created one application in that I need two fragment, So i declared
I have created two folders layout and layout-land with two xml files, one for
I have created two JavaScript files. One file is "validators.js" and the other is
I have created a class with 3 sub classes in Java. The 3 sub

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.