Tuesday, November 12, 2013

Re: Best practice for injecting environment-specific settings

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 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/production environments.  My guess is `DataResource` is the preferred method, however adding another round-trip to the server seems like a bit of overkill.  Is there another way?

Thanks in advance,
Geoff.

--
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/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate