Still finding a similar error:
[ERROR] In <g:DockLayoutPanel unit='EM'>, <g:north> must contain a
widget, but found <my:WeeklyHeader ui:field='header'>

I am allowed to use my own widgets right? Again, not really sure what
to do... Everything looks right... Am I supposed to have some code in
the SchedulerUI.java that references these widgets maybe? My
SchedulerUI.java has almost nothing in it.

package com.spierce7.gwt.scheduler.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class SchedulerUI extends Composite {

        private static SchedulerUIUiBinder uiBinder = GWT
                        .create(SchedulerUIUiBinder.class);

        interface SchedulerUIUiBinder extends UiBinder<Widget, SchedulerUI> {
        }
}

On Jun 27, 7:07 am, Thomas Broyer <[email protected]> wrote:
> On 27 juin, 00:16, spierce7 <[email protected]> wrote:
>
>
>
> > Hey, I'm trying to convert my layout to UI Binder because my current
> > layout is a bit laggy. It's giving me an error though: "[ERROR]
> > [scheduler] In <g:DockLayoutPanel unit='EM'>, <g:north> must contain a
> > widget, but found <my:WeeklyHeader>"
>
> > I read the first 3/4 of what's 
> > onhttp://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html
> > but can't really find anything on this, except for using the prefix
> > "my". I'm not familiar with XML Layout creation, and I've been
> > scouring the internet for tutorials, but I can't really find anything
> > but people using your basic GWT layout widgets. Perhaps what I'm
> > missing something on the basic usage of this. I'm trying to start
> > simple. Here is my XML:
>
> > <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent";>
> > <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
> >         xmlns:g="urn:import:com.google.gwt.user.client.ui"
> >         xmlns:my="com.spierce7.gwt.scheduler.client">
>
> You forgot the "urn:import:" part. It should read:
>
>    xmlns:my="urn.import:com.spierce7.gwt.scheduler.client"

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