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 on http://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"> <g:DockLayoutPanel unit='EM'> <g:north> <my:WeeklyHeader ui:field='header' /> </g:north> <g:center> <my:WeeklyAbsolutePanel ui:field='panel'> <my:WeeklyGrid ui:field='grid' /> </my:WeeklyAbsolutePanel> </g:center> </g:DockLayoutPanel> </ui:UiBinder> And here is the old code I've got commented out that I'm trying to eventually replace: VerticalPanel verticalPanel = new VerticalPanel(); final WeeklyHeader weeklyHeader = new WeeklyHeader(); ScrollPanel scrollPanel = new ScrollPanel(); WeeklyAbsolutePanel weeklyPanel = new WeeklyAbsolutePanel(); final WeeklyGrid weeklyGrid = new WeeklyGrid(weeklyHeader, weeklyPanel); weeklyHeader.setWeeklyGrid(weeklyGrid); verticalPanel.setWidth("100%"); verticalPanel.setStyleName("verticalPanel"); verticalPanel.setSpacing(0); scrollPanel.setHeight("800px"); weeklyPanel.add(weeklyGrid); scrollPanel.add(weeklyPanel); verticalPanel.add(weeklyHeader); verticalPanel.add(scrollPanel); RootPanel.get().add(verticalPanel); Any help is appreciated. Thanks! (I'd like a link to a better tutorial as well, if anyone has one) -- 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.
