Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    GWT Stuff in a Tab

    Hi there,
    I tried to integrate some plain GWT apps into a Set of Tabs from SmartGWT. But it isn't working so far.

    I played around using a Class extending Composite as Widget using initWidget() with a GWT FlowPanel. But adding a Tab to my TabSet lead to a blank tab without content.
    The way i tried to put my Composite to the tab was over a SmartGWT VLayout:

    Code:
    ...
    Tab tmpTab = new Tab("testTab");
    MyWidget wid = new MyWidget();
    VLayout layout = new VLayout();
    layout.addMember(wid);
    tmpTab.setPane(layout);
    ...
    where MyWidget Constructor looks like this:

    Code:
    ...
     super();
        FlowPanel panel = new FlowPanel();
    
        final Label label = new Label("Hello, GWT!!!");
        final Button button = new Button("Click me!");
    
        button.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                label.setVisible(!label.isVisible());
            }
        });
    
        panel.add(button);
        panel.add(label);
        panel.setVisible(true);
    
        initWidget(panel);
    ...

    #2
    Check out : http://www.smartclient.com/smartgwt/showcase/#featured_gwt_integration

    Comment

    Working...
    X