I looked at doing this with a dynamic host page, and still might
re-consider it should I get some spare time (unlikely). But we ended up
just using a custom servlet to get our data. In our case, we need the
server to initialize the data and constants before sending them to the
client. We fire t
> And unfortunately we don't have the ability to change this because a
> customer is loading our script.
>
Then you don't have a host page under your control anyways or am I wrong?
> Other thoughts?
>
You could "misuse" GWT's I18N Constants interface. It basically maps a
typically Java pr
Thanks Thomas. `Dictionary` is almost exactly what we need, however our
GWT JavaScript is being loaded in an anonymous function so the variables
aren't being set at `Window` scope. And unfortunately we don't have the
ability to change this because a customer is loading our script. Other
thoughts
Use a "dynamic host page":
http://www.gwtproject.org/articles/dynamic_host_page.html
On Monday, November 11, 2013 7:47:22 PM UTC+1, geoffre...@gmail.com wrote:
>
> Hello,
>
> What is the best practice for injecting/configuring environment-specific
> settings inside GWT-generated JavaScript? For
Hello,
What is the best practice for injecting/configuring environment-specific
settings inside GWT-generated JavaScript? For example, we have a series of
JSONP services hosted across a series of servers, and the hostnames/ports
of those servers are different across our development/test/produc