I'd like to change the default css for CellTable in my entire
application. I have a subtype defined like so:

public interface MyCellTableResources extends CellTable.Resources {
  interface CellTableStyle extends CellTable.Style {}
  @Source({"celltable.css", CellTable.Style.DEFAULT_CSS})
  @Override CellTableStyle cellTableStyle();
}

And I'd hope to be able to do something like this in gwt.xml:

<replace-with class="MyCellTableResources">
  <when-type-is
class="com.google.gwt.user.cellview.client.CellTable.Resources"/>
</replace-with>

I expected that GWT.create(CellTable.Resources.class) would
effectively call GWT.create(MyCellTableResources.class) and get the
implementation. But deferred binding just fails because
MyCellTableResources is not an instantiable type. Isn't it a bit silly
that GWT.create fails here, when the type that it is complaining about
not being able to instantiate is a type that can be GWT.create()ed?

Is there a workaround - maybe some way I can bind to the generated
implementation of MyCellTableResources?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to