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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:29:17+00:00 2026-06-15T00:29:17+00:00

I’m trying to write a GWT app that reuses the same template for every

  • 0

I’m trying to write a GWT app that reuses the same template for every “page” (place). There are 4 main “pages” of the app:

  • Dashboard page (http://www.mywebapp.com/#dashboard)
  • Calculator page (http://www.mywebapp.com/#calc)
  • Configurator page (http://www.mywebapp.com/#config)
  • Login page (http://www.mywebapp.com/#login)

Each “page” has the same templated look-and-feel: (1) a header section that contains the logo and the navigation menu, (2) a content section that contains “page”-specific content (i.e. will be different for the #dashboard place, #login place, etc.), and (3) a footer section that contains some links. So you see, the only thing that changes from page-to-page is the content section. Just like an ordinary, templated web site.

The thing is, each “page” (place) is actually a fairly complicated UI with many different panels consisting of lots of widgets. As the user interacts with the app, these panels will come into and out of existence and the display will be changing all the time. For instance, on the #calc page, the user can select which “mode” to display a calculator in: either as Basic or as Advanced. When the user selects Advanced, several additional panels will display (in addition to the Basic panel).

It would be nice to be able to keep such actions in history, so that the user can bookmark the app in either Basic or Advanced mode, so something like:

  • http://www.mywebapp.com/#calc/basic; or
  • http://www.mywebapp.com/#calc/advanced

Here’s the problem:

We already have several “levels” of activities/places going on here. At the “app”-level, we have the template that needs to be displayed to the user when the MyWebAppModule implements EntryPoint downloads. This TemplatePlace is the default/initial place that is registered with the HistoryHandler before calling:

public class MyWebAppModule implements EntryPoint {
    @Override
    public void onModuleLoad() {
        // ...

        // The first place we go to when this module downloads.
        TemplatePlace templatePlace = getSomehow();

        historyHandler.register(placeController, eventBus, templatePlace);
        historyHandler.handleCurrentHistory();
    }
}

Next, we have all the different “pages”: DashboardPlace, CalculatorPlace, etc. that all have their own unique views/displays. For instance when the user clicks the Calculator link to go to CalculatorPlace, it should render a different view than when the identify that they want to use the calculator in Basic or Advanced mode.

Finally, we have the different display regions, panels, etc. inside each page/place, such as the BasicCalculatorPlace and AdvancedCalculatorPlace. This is what I mean by different “levels” of navigation:

  1. Application-level (a template to apply to all pages/places)
  2. Page- or place-level
  3. Display- or panel-level

The question:

I want to achieve bookmarkable URLs (places) for when the user does all of the following:

  • Goes to the home page (http://www.mywebapp.com)
  • Goes to any of the “pages” (http://www.mywebapp.com/#calc, etc.)
  • Uses the pages/places which cause page-specific panel or display configurations (http://www.mywebapp.com\#calc\#advanced, etc.)

How many Activities and Places do I create? How many ActivityManagers? I guess I’m asking for how granular Activities/Places need to be for each “level” of bookmarkable UI. 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-15T00:29:19+00:00Added an answer on June 15, 2026 at 12:29 am

    I think you only need one ActivityManager and one Activity per “page”. You can make your “header” and “footer” into widgets that can be reused in each page.

    You can bookmark different states of the same page by using tokens. For example, you can set a token to “basic” – it would tell the CalculatorActivity to show basic calculator panel. The URL will look like:

    www.myApp.com/?#Calculator:basic
    

    When a user clicks on a widget to select an advanced option, you do

    PlaceController.goTo(new CalculatorPlace("advanced"));
    

    The CalculatorActivity will get the CalculatorView (which is already displayed), it will see that the token is set to “advanced” and it will instruct this view to show advanced panels.

    Note that you can make your tokens as detailed as necessary and then parse them in Activity. For example, you can have something like

    www.myApp.com/?#Calculator:option=basic&position=top&theme=pink
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace

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.