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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:23:29+00:00 2026-06-04T11:23:29+00:00

I am constructiong an webapp with Google Web Toolkit using GWT-Platform and GWT-Bootstrap frameworks.

  • 0

I am constructiong an webapp with Google Web Toolkit using GWT-Platform and GWT-Bootstrap frameworks. Mostly it has been almost flawless until I tried to implement a popup. These frameworks’ undestanding of popups seems to be quite different.

GWT-Platform expects a popup widget itself to be an instance of com.google.gwt.user.client.ui.PopupPanel when using the GWTP’s RevealRootPopupContentEvent.fire(source, content) or a presenter’s addToPopupSlot(child) method.

GWT-Bootstrap’s Modal is used like any other widget that is added to the underlying panel but my goal is it to have a separate presenter and view and to possibly fetch it asynchrously with AsyncProvider.

I have tried to make it as a PresenterWidget and using addToSlot(slot, content) to reveal it but it doesn’t look quite right. Not all of the styles are applied this way and the close icon (×), doesn’t work for example.

I think I am not the first one trying to do something like that so maybe someone has figured out a proper way to make it work.

Thanks!

  • 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-04T11:23:30+00:00Added an answer on June 4, 2026 at 11:23 am

    You have to create a view:

    public class MyPopupView extends PopupViewImpl implements MyView {
    
        protected Widget widget;
    
        public interface MyPopupViewUiBinder extends
                UiBinder<Widget, MyPopupView> {
        }
    
        @UiField(provided = true)
        Modal dialogBox;
    
        private MyPresenter presenter;
    
        @Inject
        public MyPopupView(final MyPopupViewUiBinder uiBinder,
                final EventBus eventBus) {
            super(eventBus);
            setUpDialog(); // Provides UiField => Before initWidgets
            initWidget(uiBinder.createAndBindUi(this));
        }
    
        // DialogBox must be overridden to let the presenter handle changes onUnload
        private void setUpDialog() {
            dialogBox = new Modal() {
    
                @Override
                protected void onUnload() {
                    MyPopupView.this.hide();
                }
            };
    
            dialogBox.setTitle("Some title");
        }
    
        @Override
        public void setPresenter(final MyPresenter presenter) {
            this.presenter = presenter;
        }
    
        @Override
        public final void hide() {
            dialogBox.hide();
            presenter.hide();
        }
    
        @Override
        public void setAutoHideOnNavigationEventEnabled(final boolean autoHide) {
            // TODO Auto-generated method stub
        }
    
        @Override
        public void setCloseHandler(
                final PopupViewCloseHandler popupViewCloseHandler) {
            // TODO Auto-generated method stub
        }
    
        @Override
        public void setPosition(final int left, final int top) {
            // TODO Auto-generated method stub
        }
    
        @Override
        public void show() {
            dialogBox.show();
        }
    
        @Override
        public void center() {
            dialogBox.show();
        }
    
        @Override
        public Widget asWidget() {
            return widget;
        }
    
        protected final void initWidget(final Widget widget) {
            this.widget = widget;
        }
    
    }
    

    And a UIBinder file:

    <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
    <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
        xmlns:g='urn:import:com.google.gwt.user.client.ui'
        xmlns:b='urn:import:com.github.gwtbootstrap.client.ui'>
    
        <b:Modal title="Some Title" ui:field="dialogBox">
            <!-- Your content -->
        </b:Modal>
    </ui:UiBinder>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Tornado 2.0 (Python 2.6.5) to build a simple web app. Naturally,
I am constructing a webcomic site, but the chapter order has changed significantly. I
I am having trouble constructing a jqGrid TreeGrid using local data. This method works
I have an .NET 1.1 web app and I am upgrading to ASP.NET MVC
I am creating one construction website in core PHP. It is almost done.But now
I am constructing a page using Editor Templates and composition. My view model contains
I am constructing a prototype for robot using Test driven development ( C#, Console
I'm constructing a SQL query for a business report (using MySQL). What I would
I'm constructing a simple search form for our support ticket database using Lucene.Net, and
I have a really strange issue when using hibernate to connect to a MySQLDB

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.