Ok, I am deveoping a GWT app using eClipse,
Everytime I run my app in eClipse the it return this format of url
http://127.0.0.1:8888/MyProject.html?gwt.codesvr=127.0.0.1:9997#!getOrder
Ok, if I deploy my app into a real domain then it will be like this http://dm.com#!getOrder
I have no ide of what this string MyProject.html?gwt.codesvr=127.0.0.1:9997
in development mode for?
Currently I doing the internationalization
. It will works If I type http://127.0.0.1:8888/MyProject.html?gwt.codesvr=127.0.0.1:9997&locale=de#!getOrder
then it will show German version
But I don't want user to type &locale=de
in the url, so I created a listbox
in my header page and when user selects other language, for ex German, then the url should capture the url part before #
& append &locale=de
& then append the url part after #
. If doing correctly it will be http://127.0.0.1:8888/MyProject.html?gwt.codesvr=127.0.0.1:9997&locale=de#!getOrder
SO i tried Window.Location.getHost()+"&locale=de"
then the url become http://127.0.0.1:8888/myproject/&locale=de
which does not work in eclipse
So How to get the Url string before & after "#" that works both in eClipse Development & in deployed real domain name in GWT?
http://stackoverflow.com/questions/25014638/how-to-get-the-url-string-before-after-that-works-both-in-eclipse-developm
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment