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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:48:05+00:00 2026-05-30T21:48:05+00:00

I have a GWT app that I ported to GWT 2.4. Now I geta

  • 0

I have a GWT app that I ported to GWT 2.4. Now I geta deprecated warning on this line:

 historyHandler.register(placeController, eventBus, defaultPlace);

“The method register(PlaceController, EventBus, Place) from the type PlaceHistoryHandler is deprecated”

Is there a better way to achieve the same result here or is it safe to ignore the warning?

public void onModuleLoad() 
     {
          // Create ClientFactory using deferred binding so we can replace with
          // different impls in gwt.xml
          ClientFactory clientFactory = GWT.create(ClientFactory.class);
          EventBus eventBus = clientFactory.getEventBus();
          PlaceController placeController = clientFactory.getPlaceController();

          // Start ActivityManager for the main widget with our ActivityMapper
          ActivityMapper activityMapper = new AppActivityMapper(clientFactory);
          ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
          activityManager.setDisplay(appWidget);

          // Start PlaceHistoryHandler with our PlaceHistoryMapper
          AppPlaceHistoryMapper historyMapper = GWT.create(AppPlaceHistoryMapper.class);
          PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
          historyHandler.register(placeController, eventBus, defaultPlace);
          RootPanel.get().add(appWidget);

          // Goes to place represented on URL or default place
          historyHandler.handleCurrentHistory();
     }
    } 
  • 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-30T21:48:06+00:00Added an answer on May 30, 2026 at 9:48 pm

    The method is deprecated because the EventBus type has moved from com.google.gwt.event.shared to com.google.web.bindery.event.shared. As indicated in the JavaDocs for PlaceHistoryHandler (which don’t make this especially clear) switching your EventBus to the com.google.web.bindery.event.shared.EventBus type will resolve the deprecated warning. That said, for now, both EventBus types are functionally identical and the warning is safe to ignore.

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

Sidebar

Related Questions

I have a GWT app that makes an RPC call to a server to
I have written an GWT app and a static Intro page that introduces the
I have a gwt app that requires GWT Recaptcha for one of its part.
We have a GWT app that has multiple screens, based off of a menu.
We have a gwt app that uses jcifs to pull the user name from
Still wresting with GWT and App Engine, and I have come to this problem:
We have a very large GWT project that results in a monolithic app about
I have a GWT app that have a HorizontalPanel that span across the width
I have a multi module project like this: gwt-app model webapp (depends on gwt-app
I have a gwt app that i debug on standard gwt port 8888 that

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.