On 16 juil, 12:41, shankar_1979 <shankar.pach...@gmail.com> wrote: > Hi, > I am trying to build a template Ui with UiBinder. (http:// > code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html). > > I have the following code. > <?xml version="1.0" encoding="UTF-8"?><!-- HomePage.ui.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' > > <!-- OUTER --> > <g:LayoutPanel> > <g:layer> > <g:layer > > <g:Label>Assessments</g:Label> > <g:layer>Select Assessments > Batteries</g:layer> > </g:layer> > </g:layer> > </g:LayoutPanel> > </ui:UiBinder> > > The issue is the GWT compiler cannot recognize the layer tag. It can > recognize all the other tags, LayoutPanel, etc. I have searched for > this kind of code and I can see that they all use g:layer. > > This is the error - [ERROR] No class matching "layer" in > urn:import:com.google.gwt.user.client.ui. > > I am using GWT 2.0.4 in Eclipse Helios (with GWT plugin). I have also > included the GWT user library with the needed jars(gwt-user.jar, gwt- > dev.jar) in GWT. > > Can you please help?
Why do you have nested g:layer? I guess the inner one is what makes UiBinder shout out, because inside a g:layer it expects a (single) widget. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.