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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:57:56+00:00 2026-05-22T23:57:56+00:00

I intend to build a web application where users can enter their time every

  • 0

I intend to build a web application where users can enter their time every week and have been struggling to get my head around the concept of a single page in GWT that gets repainted with data depending on the user actions. After researching a lot on this site and google, I found one link that I would like to emulate but dont know how to go about doing it in GWT. Although their source code is available, I dont think it is full and complete. I got some idea from this link – Multiple pages tutorial in Google Web Toolkit (GWT) but again dont know how to implement it into a working version. One small working sample would be great to help me understand and get started.

Could anyone please guide me as to how to achieve the look and feel of the screen with the link below and how the content can be repainted with data from the server ? Would I need to put all the logic in one EntryPoint class ? I would like to have the hyperlinks in the left navigation panel and show the content in the right panel. I seem to be completely lost after a few hours of research.

http://gwt.google.com/samples/Showcase/Showcase.html#!CwHyperlink

Thanks a lot for your help.

Regards,
Sonu.

  • 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-22T23:57:57+00:00Added an answer on May 22, 2026 at 11:57 pm

    A single page application layout is actually quite easy to achieve.

    The first thing you do is define the general layout, using GWTs layout panels. For your layout, I’d suggest using a DockLayoutPanel.

    Content content = new Content();
    Button switchContent = new Button(content);
    Navigation navigation = new Navigation();
    navigation.add(switchContent);
    
    DockLayoutPanel pageLayout = new DockLayoutPanel(Unit.EM);
    p.addWest(new HTML(navigation), 7.5);
    p.add(new HTML(content));
    

    Here, the width of the navigation panel will be fixed, whereas the content will take the remaining space. You have to pass a reference of the button (or some other widget) which does the switch of the content area, add the button to the navigation area, and so on.

    Put this into a class, e.g. called MasterPageFactory:

    public class MasterPageFactory {
        private MasterPageFactory() {}
    
        public static MasterPage newInstance() {
    
           Content content = new Content();
           Button switchContent = new Button(content);
           Navigation navigation = new Navigation();
           navigation.add(switchContent);
    
           DockLayoutPanel masterPage = new DockLayoutPanel(Unit.EM);
           masterPage.addWest(new HTML(navigation), 7.5);
           masterPage.add(new HTML(content));
    
           return masterPage;
        }
    }
    

    Now, in your EntryPoint class, call the factory:

    RootLayoutPanel.get().add(MasterPageFactory.newInstance());
    

    This example should get you an idea. Other options would be using a DI framework like Guice or the Command pattern.

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

Sidebar

Related Questions

I have a Web Application project where the users can upload images to the
I have built a small web application in PHP where users must first log
I intend to build a small web site that will poll a third party
I am just wondering, should i build the reporting engine inside my web application
I have an application that will accept URLs from the built in web browser
I intend to develop a small (Java) application for managing my finances. I believe
I have an SVN repository where I have trunk and a branch. I intend
i am developing an application for android and would like for my users to
I intend to build a HttpModule in order to scan a response's source and
I intend to build a RESTful service which will return a custom text format.

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.