Hi,

I cannot make TabLayoutPanel work with UiBinder. I've tested it with
both Chrome and IE8 and it doesn't show. I made a simple sample using
the following UiBinder XML:
(taken from TabLayoutPanel javadocs help)

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

          <g:TabLayoutPanel barUnit='PX' barHeight='3'>
          <g:tab>
            <g:header size='7'><b>HTML</b> header</g:header>
            <g:Label>able</g:Label>
          </g:tab>
          <g:tab>
            <g:customHeader size='7'>
              <g:Label>Custom header</g:Label>
            </g:customHeader>
            <g:Label>baker</g:Label>
          </g:tab>
         </g:TabLayoutPanel>

</ui:UiBinder>

------------------------
and my class code:
------------------------
package com.demosten.uitest.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.TabLayoutPanel;

public class Test1 implements EntryPoint
{
        interface Test1UiBinder extends UiBinder<TabLayoutPanel, Test1> { }
        private static final Test1UiBinder uiBinder = GWT.create
(Test1UiBinder.class);

        public void onModuleLoad()
        {
                TabLayoutPanel outer = uiBinder.createAndBindUi(this);

            RootLayoutPanel root = RootLayoutPanel.get();
            root.add(outer);
        }
}
------------------------
Am I missing something? Please help!

Regards,
demosten

--

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.


Reply via email to