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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:55:47+00:00 2026-05-28T02:55:47+00:00

How to achieve multipage with GWT, such that the gwt application can have multiple

  • 0

How to achieve multipage with GWT, such that the gwt application can have multiple EntryPoint that is mapped to a html.

Like HomeEntryPoint mapped to home.html and
EditEntryPoint mapped to edit.html and so on. Such that to load the EntryPoint it is access through the URL like this: http://localhost:8080/home.html or http://localhost:8080/edit.html

Right now I am using GWT Multipage however I think its not maintained anymore. And it has some issues that I can’t fix right now.

Issue like this.

  • 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-28T02:55:47+00:00Added an answer on May 28, 2026 at 2:55 am

    Doing this will mean that your app will have to start back up again when the next page loads – if you are okay with this, then…

    There are a few ways of doing something like this. The quickest/easiest is going to be to list all of your entrypoints in the module file, and at the top of each onModuleLoad do a check if it is at the right page. Something like (customized for each page/entrypoint of course):

     if (!Window.Location.getPath().toLowerCase().endsWith("myhtmlpage.html") {
       return;
     }
    

    GWT will compile all the entry points (and all depending classes, to just make one set of files, each class downloaded only once) into one js file, and all entrypoints will run, but they will stop themselves if they shouldn’t be run at that time.

    A step further would be to change this to use an annotation on each entrypoint, and a generator for all entrypoints (Did you know your entrypoint instance is created with GWT.create? It’s true!), which would override onModuleLoad and add this logic automatically.

    Edited to use getPath() in place of getHref(), and to toLowerCase() that string to ensure that no case issues crop up

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

Sidebar

Related Questions

I am building a multi-tier application that will have multiple smaller apps apart from
I'm trying to achieve a layout in html that looks exactly like this when
I want to achieve something like the following: Where I can select multiple folders
I have doubt whether we can achieve multiple inheritence using 'module' concept or Is
how can i paste something on multiple lines? i'm trying to achieve the same
I'm trying to achieve the following functionality. Within a form I have multiple fields
Can anyone tell me how I might achieve automatic vertical scrolling of multiple TextViews?
With grid.arrange I can arrange multiple ggplot figures in a grid to achieve a
I have multiple classes with many associations linking them together and I would like
I would like to achieve something I can easily do in .net. What I

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.