I am following the "Use in UiBinder Templates" on
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/TabLayoutPanel.html

My Template.ui.xml - I just cut'n'pasted from the
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/TabLayoutPanel.html

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

My Template.java

public class Template extends Composite {

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

        interface TemplateUiBinder extends UiBinder<Widget, Template> {
        }


        public Template() {
                initWidget(uiBinder.createAndBindUi(this));

        }

}

My index.jsp has the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

My CSS file has the following:
/* http://code.google.com/p/google-web-toolkit/issues/detail?id=4447
*/
.gwt-TabLayoutPanel .gwt-TabLayoutPanelTab { float: left }

My onModuleLoad() has the following:

        public void onModuleLoad() {
                Template template = new Template();
                RootLayoutPanel.get().add(template);
        }

When I ran it, it only shows "able" which is the first tab. "baker"
tab did not show up.

My development environments: GWT 2.0, GAE 1.3.0, Eclipse Galileo, 32-
bit Windows Vista, Firefox 3.5.7

What did I do wrong?

Thanks in advance for your help.


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