Announcement

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

    Integrate GWT with smartgwt

    Hello!

    I just started using smartgwt. I tried integrating it with gwt widgets. I created new Widget using Composite of GWT. My composite looks something like this:


    import com.smartgwt.client.widgets.IButton;
    import com.google.gwt.user.client.ui.VerticalPanel;
    import com.google.gwt.user.client.ui.Grid;

    //Other imports

    public class ListView extends Composite{

    VerticalPanel main = new VerticalPanel();
    public ListView(){

    main.add(new Grid());
    main.add(new Button(Refresh));
    main.add(new IButton("Add"));

    initWidget(main);
    }

    }


    This composite widget is added to RootPanel. However, when I run the app after compile, the window doesn't display anything. When I remove Ibutton widget though, the rest of the widgets is displayed.

    Can we add smartgwt widgets to GWT panels (e.g. VerticalPanel)? Thanks a lot!
Working...
X