In GWT 2.7, you need to enable the automatic conversion of css file by setting the configuration property CssResource.legacy to true:
<set-configuration-property name="CssResource.legacy" value="true" /> In GWT 2.8, the compiler will choose the right resource file according to your configuration (GSS enabled or not) On Wednesday, May 6, 2015 at 5:38:22 PM 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 the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.