Sunday, January 17, 2016

Re: migrating from css to gss (gwt 2.7) - CellWidgets compile errors ?

The old CssResource (before GWT 2.7 or GWT 2.7+ without enabling GSS) doesn't support several CSS3 syntax. If you want a full CSS3 support in GWT, you have to turn GSS on. 
That doesn't mean that you have to use GSS syntax because GSS is a superset of CSS. It offers several additional features above CSS that you are not obliged to use if you don't want them.

If you use SASS, LESS or other CSS preprocessor language, you have first to compile it in pure CSS before to compile your GWT application (except if you have a generator that is able to compile this preprocessor language).

Julien

On Sun, Jan 17, 2016 at 2:22 AM Stefan Falk <stefan.r.falk@gmail.com> wrote:
Hi!

I just had the same issue using this Vaadin library, or rather say while testing it. 
What does this mean exactly? That GWT 2.8.0 won't support CSS at all and that I will have to convert all the CSS into GSS? 

I am asking because in that case I wouldn't even start to use CSS.

BR; Stefan


On Wednesday, 6 May 2015 17:38:22 UTC+2, Thomas Broyer wrote:
Widgets have not yet been updated to GSS; it should be done by the 2.8 release (there was an attempt already –last week IIRC– but it had to be reverted)

On Wednesday, May 6, 2015 at 4:46:44 PM UTC+2, Thomas Lacroix wrote:
Hi,
I am migrating from css to gss using gwt 2.7 and the compile fails :

Computing all possible rebind results for 'com.google.gwt.resources.client.CommonResources.Bundle'
            Rebinding com.google.gwt.resources.client.CommonResources.Bundle
               Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
                  Preparing method inlineBlockStyle
                     [ERROR] Your ClientBundle is referencing css files instead of gss. You will need to either convert these files to gss using the converter tool or turn on auto convertion in your gwt.xml file. Note: Autoconversion will be removed in the next version of GWT, you will need to move to gss.Add this line to your gwt.xml file to temporary avoid this:<set-configuration-property name="CssResource.legacy" value="true" />
         [ERROR] Errors in 'com/google/gwt/resources/client/CommonResources.java'
            [ERROR] Line 57: Failed to resolve 'com.google.gwt.resources.client.CommonResources.Bundle' via deferred binding
         Computing all possible rebind results for 'com.google.gwt.user.cellview.client.CellList.Resources'
            Rebinding com.google.gwt.user.cellview.client.CellList.Resources
               Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
                  Preparing method cellListStyle
                     [ERROR] Your ClientBundle is referencing css files instead of gss. You will need to either convert these files to gss using the converter tool or turn on auto convertion in your gwt.xml file. Note: Autoconversion will be removed in the next version of GWT, you will need to move to gss.Add this line to your gwt.xml file to temporary avoid this:<set-configuration-property name="CssResource.legacy" value="true" />
         [ERROR] Errors in 'com/google/gwt/user/cellview/client/CellList.java'
            [ERROR] Line 147: Failed to resolve 'com.google.gwt.user.cellview.client.CellList.Resources' via deferred binding
         Computing all possible rebind results for 'com.google.gwt.user.cellview.client.CellBrowser.Resources'
            Rebinding com.google.gwt.user.cellview.client.CellBrowser.Resources
               Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
                  Preparing method cellBrowserStyle
                     [ERROR] Your ClientBundle is referencing css files instead of gss. You will need to either convert these files to gss using the converter tool or turn on auto convertion in your gwt.xml file. Note: Autoconversion will be removed in the next version of GWT, you will need to move to gss.Add this line to your gwt.xml file to temporary avoid this:<set-configuration-property name="CssResource.legacy" value="true" />
         [ERROR] Errors in 'com/google/gwt/user/cellview/client/CellBrowser.java'
            [ERROR] Line 896: Failed to resolve 'com.google.gwt.user.cellview.client.CellBrowser.Resources' via deferred binding

The errors goes away with the flag
<set-configuration-property name="CssResource.legacy" value="true" />

Am I doing something wrong or does it mean CellWidgets are not compatible with GSS for GWT 2.7 ? If do will it be for the next release ?
Thanks,
Thomas

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/eAYyp4byQRQ/unsubscribe.
To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment