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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:41:45+00:00 2026-05-11T16:41:45+00:00

I have a project which will be made up mostly of Java Servlets, JSP/Html

  • 0

I have a project which will be made up mostly of Java Servlets, JSP/Html pages, and some regular javascript. However, there are some screens which will be too complex to do in just javascript, so I will want to use GWT for that.

Is it possible to do this, so there are multiple EntryPoint classes in the same project? Then, depending on which page is being loaded I will load the appropriate javascript file?

I was thinking that perhaps, the RootPanel.get() function will be used to check if certain <div>s with a given ID exist. For example, if the signup div exists, load the sign up GWT control, if ‘search’ div exists then load Search, but this will make the javascript file very large unnessarily. I’d much rather each component be in its own javascript file.

Is that possible?

  • 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-11T16:41:45+00:00Added an answer on May 11, 2026 at 4:41 pm

    I think it would be best to separate pages into GWT modules. If you will use RootPanel.get() to check if specific slot (DIV or other element) exists your module will hold all of your UI, so client will load whole module, only accessing one page – which well be unnecessary overhead.
    You can place common code in some module which all of your pages modules will inherit from.

    RootPanel.get() is better for you to have sets of widgets (logical panels in your UI e.g. menu, main content, etc.) and you can place them in proper slots on page.

    Example structure in your app would look like (see question in comment):

    - gwtui
    -- common (module1)
    --- client
    ---- widgets (eg. common widgets)
    ---- ...
    ---- ApplicationService.java
    ---- ApplicationServiceAsync.java
    --- public
    ---- images (common images etc.)
    ---- css (common style)
    ---- ...
    --- server
    ---- ...
    ---- ApplicationServiceImpl.java
    --- GwtCommon.gwt.xml
    -- expenses (module2)
    --- client
    ---- ExpensesEntrypoint.java
    --- public
    --- server
    --- GwtExpenses.gwt.xml (inherits GwtCommon, entry point ExpensesEntrypoint)
    -- reports (module2)
    --- client
    ---- ReportsEntrypoint.java
    --- public
    --- server
    --- GwtReports.gwt.xml (inherits GwtCommon, entry point ReportsEntrypoint)
    

    Note that you can use one service in all modules, as well in common module you might don’t have to create entry point (but I’m not 100% sure, in some old project I had to create empty entry point, but don’t remember exact reason – sorry)

    That worked for us.

    I certainly would like to hear different opinions.

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

Sidebar

Ask A Question

Stats

  • Questions 227k
  • Answers 227k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You might get this to work by moving the window… May 13, 2026 at 1:28 am
  • Editorial Team
    Editorial Team added an answer here is code. it should help you. string dirPath =… May 13, 2026 at 1:28 am
  • Editorial Team
    Editorial Team added an answer Have you looked into NAudio on CodePlex? It looks like… May 13, 2026 at 1:28 am

Related Questions

How to find and remove unused Delphi runtime packages from a project that uses
So I have been working on a project for a client on their current
Update 5: I've downloaded the latest Spring ToolsSuite IDE based on the latest Eclipse.
Right now, I'm extremely frustrated because I was in the process of developing some

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.