Hello group:

I was able to find the solution for the runtime JS that was being generated.
I was able to remove the runtime JS code by adding:

 <inherits name="com.google.gwt.user.UserAgent" />
<set-configuration-property name="user.agent.runtimeWarning" value="false"/>

Hope this helps someone in the future.

Regards,

Alfredo

On Mon, Aug 15, 2011 at 12:30 PM, Alfredo Quiroga-Villamil <
[email protected]> wrote:

> Hello group:
>
> Prior to GWT 2.3.0 I was able to limit the number of permutations generated
> by GWT by specifying the property user.agent. The generated JS had no
> references in it to the actual agent or anything related to it. When I use
> GWT 2.3.0 now to compile I see a few lines in the generated JS that
> reference User Agent. For example:
>
> ===== Generated JS output in pretty mode =====
>
> function $getRuntimeValue(){
>
>   var ua = navigator.userAgent.toLowerCase();
>
>  .......
>
> ===== Generated JS output in pretty mode =====
>
> I would like to use GWT to compile the Java code to JS and have it so that:
>
> 1. It only generates one version of the JS with no references to a browser
> in this case. It worked like that prior to GWT 2.3.0.
>
> 2. Furthermore I would like to also be able to use Constants and not have
> multiple permutations but just one.
>
> I've for now found a way to accomplish number 2 I think by modifying the
> I18N.gwt.xml default value for the locale and setting it to the one I want.
>
> Can someone recommend a way if possible to use GWT to compile to JS with
> just one permutation in GWT 2.3.0 without generating references to the UA in
> the generated JS?
>
> Thank you in advance for the help.
>
> Alfredo
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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

Reply via email to