I just compiled this and the problem seems to only exist in hosted
mode.

On Apr 5, 2:25 pm, lineman78 <[email protected]> wrote:
> I am using the UIBinder sample code that is generated by eclipse and I
> have run into one minor problem.  The CSS is not being injected.  Here
> is the code:
>
> <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent";>
> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder">
>         <ui:style>
>                 .important {
>                         font-weight: bold;
>                 }
>         </ui:style>
>         <div>
>                 Hello,
>                 <span class="{style.important}" ui:field="nameSpan" />
>         </div>
> </ui:UiBinder>
>
> public class SubModulePanel extends UIObject {
>         private static SubModulePanelUiBinder uiBinder = GWT
>                         .create(SubModulePanelUiBinder.class);
>
>         interface SubModulePanelUiBinder extends UiBinder<Element,
> SubModulePanel> {
>         }
>
>         @UiField
>         SpanElement nameSpan;
>
>         public SubModulePanel(String firstName) {
>                 setElement(uiBinder.createAndBindUi(this));
>                 nameSpan.setInnerText(firstName);
>         }
>
> }
>
> getFrontEndRootPanel().getElement().appendChild(
>                                 new SubModulePanel("Plugin 1; Instance:"
>                                                 + 
> getArgs().get("Instance")).getElement());
>
> I checked it with firebug and it does have an obfuscated class name,
> but the CSS is never injected.  I don't know if it matters but all
> this is called through a runAsync.  Is there a way to inspect the
> generated classes with eclipse?  I tried to inject the CssResource
> into the SubModulePanel class so I could inject it manually, but also
> had problems with that.

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

Reply via email to