Either you're using hosted mode (which is IE on windows, an old FF on
linux) or you're using web mode and a browser that's not chrome or safari.

Paul

Pham Tran Quoc Viet wrote:
> Hi,
>
> I tried: 
>       <inherits name='com.google.gwt.user.User'/>
>   <inherits name='com.google.gwt.user.UserAgent'/>
>   <set-property name='user.agent' value='safari'/> 
> but it crashed with this error:
>
> [ERROR] Unable to load module entry point class
> com.cadao.main.client.main (see associated exception for details)
> com.google.gwt.core.client.JavaScriptException: (TypeError): Object
> doesn't support this property or method
>  number: -2146827850
>  description: Object doesn't support this property or method
> at
> com.google.gwt.user.client.impl.DOMImplStandard.initEventSystem(Native
> Method)
> at
> com.google.gwt.user.client.impl.DOMImpl.maybeInitializeEventSystem(DOMImpl.java:165)
> at
> com.google.gwt.user.client.impl.DOMImplStandard.sinkEvents(DOMImplStandard.java:160)
> at com.google.gwt.user.client.DOM.sinkEvents(DOM.java:1214)
> at com.google.gwt.user.client.ui.UIObject.sinkEvents(UIObject.java:713)
>
>
> Thanks.
>
> Viet Pham
>
>
> On Wed, Feb 4, 2009 at 1:36 AM, lowecg2004 <chris.lowe.uk
> <http://chris.lowe.uk>@gmail.com <http://gmail.com>> wrote:
>
>
>     Try safari
>
>     On Feb 4, 4:41 am, Pham Tran Quoc Viet <[email protected]
>     <mailto:[email protected]>>
>     wrote:
>     > Hi,What is the value for Chrome browser? I tried this, but it
>     crashed.
>     > Thanks.
>     >
>     > <inherits name='com.google.gwt.user.User'/>
>     >       <inherits name='com.google.gwt.user.UserAgent'/>
>     >   <set-property name='user.agent' value='chrome'/>
>     >
>     > Here is the crash:
>     > [ERROR] Unable to get value of property 'user.agent'
>     > com.google.gwt.core.ext.BadPropertyValueException: Property
>     'user.agent'
>     > cannot be set to unexpected value 'chrome'
>     > at
>     >
>     
> com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(Mod
>     uleSpacePropertyOracle.java:114)
>     > at
>     >
>     
> com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleS
>     pacePropertyOracle.java:59)
>     > at
>     >
>     
> com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenProperty
>     Is.java:48)
>     > at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
>     > at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37)
>     > at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
>     > at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35)
>     > at
>     >
>     
> com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRe
>     bindOracle.java:106)
>     > at
>     >
>     
> com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebin
>     dOracle.java:61)
>     > at
>     >
>     
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j
>     ava:166)
>     > at
>     >
>     
> com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j
>     ava:114)
>     >
>     > Viet Pham
>     >
>     > On Sun, Feb 1, 2009 at 9:48 AM, Niklas Derouche
>     <[email protected] <mailto:[email protected]>> wrote:
>     > > Well, for me it only generates the IE version and the time is
>     down to about
>     > > 40 percent.
>     > > clean out the www folder before the compile perhaps?
>     >
>     > > n.
>     >
>     > > On Sun, Feb 1, 2009 at 6:35 PM, Pham Tran Quoc Viet <
>     > > [email protected]
>     <mailto:[email protected]>> wrote:
>     >
>     > >> Hi,Great. That went through without error. How do you verify
>     if only ie6
>     > >> version is created? I looked at the www folder and saw a
>     bunch of html files
>     > >> whose names are some_random_number.html
>     >
>     > >> The time it took to compile did not seem to improve either.
>     Thanks.
>     >
>     > >> Viet Pham
>     >
>     > >> On Sun, Feb 1, 2009 at 9:22 AM, Niklas Derouche
>     <[email protected] <mailto:[email protected]>> wrote:
>     >
>     > >>> Hi,
>     > >>> try:
>     >
>     > >>> <inherits name='com.google.gwt.user.User'/>
>     > >>> <inherits name='com.google.gwt.user.UserAgent'/>
>     > >>> <set-property name='user.agent' value='ie6'/>
>     >
>     > >>> if you see what I mean.
>     >
>     > >>> n.
>     >
>     > >>> On Sat, Jan 31, 2009 at 2:58 AM, Pham Tran Quoc Viet <
>     > >>> [email protected]
>     <mailto:[email protected]>> wrote:
>     >
>     > >>>> Hi,
>     > >>>> I followed the advise in this thread and added the
>     following to my
>     > >>>> module.gwt.xml:
>     > >>>> <module>
>     > >>>>   <set-property name="user.agent" value="ie6" />
>     > >>>>   <extend-property name="locale" values="en_US" />
>     >
>     > >>>>       <!-- Inherit required packages -->
>     > >>>>       ...
>     > >>>>       <!-- Style sheets -->
>     > >>>>       ...
>     > >>>>       <!-- Entry point -->
>     > >>>>       ...
>     > >>>> </module>
>     >
>     > >>>> I got this error:
>     > >>>> [ERROR] Property 'user.agent' not found
>     > >>>> [ERROR] Failure while parsing XML
>     >
>     > >>>> Any ideas? Thanks.
>     > >>>> Viet Pham
>     >
>     > >>>> On Sun, Nov 9, 2008 at 12:10 AM, surfer
>     <[email protected] <mailto:[email protected]>>wrote:
>     >
>     > >>>>> many many thanks
>     > >>>>> using <set-property name="user.agent" value="gecko" />
>     > >>>>> the time of compilation fell down from 3':10" to 1':37"
>     >
>     > >>>>> Lorenzo
>     >
>     > >>>>> On 8 Nov, 02:13, "Ian Petersen" <[email protected]
>     <mailto:[email protected]>> wrote:
>     > >>>>> > On Fri, Nov 7, 2008 at 6:06 PM, surfer
>     <[email protected] <mailto:[email protected]>>
>     > >>>>> wrote:
>     > >>>>> > > since often the main development of an application is
>     viewed and
>     > >>>>> > > debugged with one single type of browser and only
>     sometimes
>     > >>>>> verified
>     > >>>>> > > on the others, does anybody know if it's possible to
>     force GWT
>     > >>>>> > > compiler to build javascript code for just one single
>     target
>     > >>>>> browser,
>     > >>>>> > > in order to increase compiling phase performance ?
>     >
>     > >>>>> > Yes it's possible.  The answer lies behind this link:
>     >
>     
> >>>>>http://groups.google.com/group/Google-Web-Toolkit/search?group=Google.
>     > >>>>> ..
>     >
>     > >>>>> > Ian
>     >
>     > >>> --
>     > >>> -------------------------------------------------------
>     > >>> Ave bossa nova, similis bossa seneca
>     >
>     > > --
>     > > -------------------------------------------------------
>     > > Ave bossa nova, similis bossa seneca
>
>
>
> >

--~--~---------~--~----~------------~-------~--~----~
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