Saturday, June 18, 2011

Re: Finding GWT development mode url programatically

On 6/18/2011 5:03 PM, dreamer wrote:
> Hi,
>
> Is there a way to find the GWT development mode URL programatically ?
>
> I want to pass this this to app engine user service for destination
> url.
>
> On similar lines of "GWT.getModuleBaseURL()" - but I want
>
> URL like "http://127.0.0.1:8888/SchoolDistrict.html?
> gwt.codesvr=127.0.0.1:9997", to put me back into
> dev mode after Google account login / log out dialog.
>
>
You can use Window.Location
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.Location.html

for this.

Consider using the GWT.isProdMode()
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/GWT.html#isProdMode%28%29
to defeat the login step.

Gin and a mock login handler is also a resilient choice.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate