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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:52:28+00:00 2026-05-28T22:52:28+00:00

When running a GWT application in hosted mode one usually needs to add the

  • 0

When running a GWT application in hosted mode one usually needs to add the location of the code server in a query string parameter, for example instead of index.html one may need to open index.html?gwt.codesvr=127.0.0.1:9997. The problem is that gwt.codesvr is not usually included in hyperlinks, so it has to be added manually. Adding it to all links in your application does not seem a good idea as it will interfere with the final GWT-compiled version. Another option is for index.html to introspect itself by JavaScript and append a default gwt.codesvr to window.location, but this should be done only after the application is sure that it has not been compiled, that is after the GWT module may need to be (re)compiled alert.
The ideal solution, I believe, would be for GWT to allow customization of the action it does after it finds no permutations to select from. The default action is to show the alert warning just mentioned, but unfortunately this is not customizable.

So my question is this: what is the best way to automatically open the current page with a default gwt.codesvr when there is no compiled permutations.

  • 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-28T22:52:29+00:00Added an answer on May 28, 2026 at 10:52 pm

    Since I’m dealing with ‘Places’ all the time now I updated the bookmarklet to deal with ‘#’ too.

    javascript:(function(){h="localhost";p="9997";l="gwt.codesvr="+h+":"+p;s=false;if(document.location.href.indexOf("gwt.codesvr")<0){q=document.location.href.indexOf("?");if(q<0){q=document.location.href.indexOf("#");if(q>0){q=q-1}s=true}if(q<0&&!s){document.location.href=document.location.href+"?"+l}else%20if(q>=0&&!s){b=document.location.href.substr(0,q+1);e=document.location.href.substr(q+1);document.location.href=b+l+"&"+e}else{b=document.location.href.substr(0,q+1);if(q<0){e=""}else{e=document.location.href.substr(q+1)}document.location.href=b+"?"+l+e}}})();
    

    Update 2/7/2017- There had been a typo in the script. Corrected it.

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

Sidebar

Related Questions

I am running a GWT application in hosted mode. Sporadically I get a strange
I am running a basic GWT application in IntelliJ, below is my code public
I am running a GWT application in development mode out of Glassfish 3.1.1 (launched
My question is the following: I got one application running with GWT. At the
Anyone have GWT 1.6.4 running on FreeBSD? Our build server is a FreeBSD box,
Does anyone know how to monitor long-running server-side processes in GWT, other than polling
I am running a GWT Web Application project in Eclipse with certain Entities that
I am facing this error while running my Java/ GWT application Any idea Thanks
I am facing this error while running my GWT application. I have these jar
I am developing a GWT application to get the query results from the Freebase.

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.