but only
GWT.getHostPageURL()+"imageRetriever" is working properly. "
GWT.getModuleBaseURL() " doesn't work neither in web nor in hosted mode. the modules name differs from actual url: module "myapp" url: "MyApp-0.0.1"(in web mode) an and "MyApp.html?gwt.codesvr=127.0.0.1:9997" (in hosted mode). So
GWT.getModuleBaseURL() must always be wrong
----------------------------------------
> Date: Wed, 11 Jan 2012 06:46:06 -0800
> Subject: Re: loading an image
> From: derekadean@gmail.com
> To: google-web-toolkit@googlegroups.com
>
> GWT.getHostPageURL()+"imageRetriever"
>
> Javadocs suggest using getModuleBaseURL() instead of getHostPageURL(),
> so that would be GWT.getModuleBaseURL()+"../imageRetriever", but in
> the absence of cross-site loading, I don't think it makes much
> difference.
>
> Derek
>
> On Jan 11, 4:51 am, tanteanni wrote:
> > As assumed you were right: the called image url is somthing like this
> > "/imageRetriever?[some Parameters] (its a simple HttpServlet). So in hosted
> > and webmode if i add /imageRetirever... to Url in Browser the Image is
> > displayed fine. But as you said in WebMod the Url contains a
> > "myProject"-Part. But how to fix this?
>
> --
> 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.
>
--
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.
No comments:
Post a Comment