On Monday, August 17, 2015 at 6:18:05 PM UTC+2, DaveC wrote:
>
> I get the same error if I use {style.defaultStyle}.
>

Then I guess maybe @ClassName is not supported with "implicit CssResources" 
in UiBinder (aka <ui:style>)…
 

> Could you clarify why {style.panel-default} is not a valid value?
>

Things between {} are converted to Java method calls. The value before the 
first "." is a @UiField/ui:field (includes <ui:style field="">, <ui:with 
field="">, etc. the fact you can use 'style' here is because <ui:style> has 
an implicit field="style"), then each part after the first dot is simply 
suffixed with a pair of parens, such that {style.defaultStyle} is turned 
into "style.defaultStyle()". As you can see, {style.panel-default} would 
produce invalid Java code.

See 
http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Hello_Stylish_World, 
and 
http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Using_an_external_resource
 
where this is more apparent (though I admit not explicitly described; only 
through examples)

-- 
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