google-code-export / mgwt

Automatically exported from code.google.com/p/mgwt
Other
1 stars 0 forks source link

GWT 2.6 compiler error "The value opera was not previously defined." #321

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Same as 
http://stackoverflow.com/questions/21517007/gwt-2-6-with-gxt-3-0-1-error-in-comp
ile

What steps will reproduce the problem?
1. build skeleton project ala mgwt/wiki/SetupProject
2. specify latest gwt version 2.6
3. mvn clean install

What is the expected output? What do you see instead?
Expected no compiler errors.
---------
   Loading inherited module 'com.googlecode.mgwt.MGWT'
      Loading inherited module 'com.googlecode.mgwt.MGWTMin'
         Loading inherited module 'com.googlecode.mgwt.ui.UI'
            [ERROR] The value opera was not previously defined.
            [ERROR] Line 19: Unexpected exception while processing element 'set-property'
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
-------------

What version of the product are you using? On what operating system?
Eclipse Keplar, Win7, 
        <!-- mgwt dependency -->
        <dependency>
            <groupId>com.googlecode.mgwt</groupId>
            <artifactId>mgwt</artifactId>
            <version>1.1.2</version>
        </dependency>
        <!-- gwtphonegap dependency -->
        <dependency>
            <groupId>com.googlecode.gwtphonegap</groupId>
            <artifactId>gwtphonegap</artifactId>
            <version>2.4.0.0</version>

        </dependency>

Please provide any additional information below.

Possible solution?
 omit UI.gwt.xml lines 101-106

<replace-with class="com.googlecode.mgwt.ui.client.util.impl.OperaCssUtilImpl">
<when-type-is class="com.googlecode.mgwt.ui.client.util.impl.CssUtilImpl" />
<all>
<when-property-is name="user.agent" value="opera" />
</all>
</replace-with>

Original issue reported on code.google.com by andy.stevko on 17 Feb 2014 at 10:57

GoogleCodeExporter commented 9 years ago
"opera" is removed from GWT 2.6 user.agent strings!

You can add this line in your module before inheriting MGWT:

<extend-property name="user.agent" values="opera" fallback-value="safari" />

This should work for now

Original comment by sbrah...@gmail.com on 4 Jun 2014 at 8:58

GoogleCodeExporter commented 9 years ago
This is not a problem with mgwt 2.0

Original comment by kurka.da...@gmail.com on 13 Jul 2014 at 4:43

GoogleCodeExporter commented 9 years ago
Is there already a roadmap for maybe a 1.1.3 or the 2.0 release, Where this 
feature is fixed? Couldn't find anything at:  
https://code.google.com/p/mgwt/wiki/RoadMap 

Original comment by grombar...@gmail.com on 22 Jul 2014 at 2:37