Can i set the GWT Compiler only one webrowser support?

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Can i set the GWT Compiler only one webrowser support?

Postby eivenchan » Sun Apr 13, 2008 5:41 pm

As we know ,GWT Compiler change the java code to javascript expend a long time.
Can i set some argument when i run the complier to set it compile only one webrowser javascript code?
I think this can economize more devploment time.
eivenchan
 
Posts: 9
Joined: Tue Mar 25, 2008 5:24 pm

Re: Can i set the GWT Compiler only one webrowser support?

Postby Eric Clayberg » Mon Apr 14, 2008 10:08 am

eivenchan wrote:As we know ,GWT Compiler change the java code to javascript expend a long time.
Can i set some argument when i run the complier to set it compile only one webrowser javascript code?
I think this can economize more devploment time.

AFAIK, the GWT compiler does not have a flag for limiting its code generation to a single browser or locale.

That would seem to defeat one of the major reasons to use GWT, so I can't imagine why they would add such an option.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Can i set the GWT Compiler only one webrowser support?

Postby peterblazejewicz » Mon Apr 14, 2008 3:56 pm

eivenchan wrote:As we know ,GWT Compiler change the java code to javascript expend a long time.
Can i set some argument when i run the complier to set it compile only one webrowser javascript code?
I think this can economize more devploment time.
,

hi,

open your #####.gwt.xml module generated by GWT Designer when creating new project and add such line:
Code: Select all
<set-property name="user.agent" value="safari"/>

you need to use values from GWT User.gwt.xml (that is used by boostrap, ie6/gecko/opera/safari/etc),

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: Can i set the GWT Compiler only one webrowser support?

Postby Eric Clayberg » Tue Apr 15, 2008 3:51 am

Good suggestion!
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests