I am using a lot of small interface to compose bigger ones, but using this 
with CssResources seem to result in problems, like if I am using the 
@Shared annotation, which I am not :(
Below one of the use case that is giving me problems.

The micro interface that is extended by CssResource interfaces:

> public interface HasOuterContainerStyle  {
> @ClassName("OuterContainer")
> String outerContainer();
> }


I use this in several places like these:

> public interface SubscribeStyle extends CssResource, 
> HasOuterContainerStyle {

public interface SimpleDisplaySwitcherStyle extends CssResource, 
> HasOuterContainerStyle {


And there corresponding resources:

> public interface SubscribeResources extends ClientBundle {
> @Source(SubscribeStyle.DEFAULT_CSS)
> SubscribeStyle style();
> }

public interface SimpleDisplaySwitcherResources extends ClientBundle {
> @Source(SimpleDisplaySwitcherStyle.DEFAULT_CSS)
> SimpleDisplaySwitcherStyle simpleDisplaySwitcher();
> }

 
The funny result is that the Div that would have style 
SubscribeStyle.OuterContainer, 
is having style: SimpleDisplaySwitcherStyle .OuterContainer.
I searched for any dependencies, but they have nothing to do with 
eachother, not even through @Import or @Shared annotation. 

I solve it by simple removing the HasOuterContainerStyle  interface and 
repeating the style method (copy/paste it from the micro interface).
I noticed this a few weeks ago, and thought it was just some mistake I 
made. But I see it now again, and can't find any mistake. 

Any idea what I am doing wrong? Maybe something for the issue tracker?

 
 
 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to