Chcę użyć układu SmartGWT w Vaadin 7. Przeszukałem go wszędzie; Ale nie udało się uzyskać poprawnego samouczka ani kodu źródłowego. Czy ktoś może mi w tym pomóc?Integracja układu SmartGWT w Vaadin 7
I próbowałem w SmartGWT. Utworzyłem układ w SmartGWT.
public class SmartGWTLayout extends Widget {
public SmartGWTLayout() {
TabSet tabSet = new TabSet();
tabSet.setTabBarPosition(Side.TOP);
tabSet.setWidth(400);
tabSet.setHeight(200);
Tab tTab1 = new Tab("Blue", "pieces/16/pawn_blue.png");
Img tImg1 = new Img("pieces/48/pawn_blue.png", 48, 48);
tTab1.setPane(tImg1);
Tab tTab2 = new Tab("Green", "pieces/16/pawn_green.png");
Img tImg2 = new Img("pieces/48/pawn_green.png", 48, 48);
tTab2.setPane(tImg2);
tabSet.addTab(tTab1);
tabSet.addTab(tTab2);
VLayout vLayout = new VLayout();
vLayout.setMembersMargin(15);
vLayout.addMember(tabSet);
vLayout.setAutoHeight();
vLayout.draw();
}
}
Zadzwoniłem do układu w Vaadin w ten sposób.
SmartGWTLayout aSmartGWTLayout = new SmartGWTLayout();
vaadinLayout.addComponent((Component)SmartGWTLayout);
A ja dostaję ten błąd
HTTP Status 500 - java.lang.NoClassDefFoundError: com/google/gwt/core/shared/GWTBridge
type: Exception report
message: java.lang.NoClassDefFoundError: com/google/gwt/core/shared/GWTBridge
description: The server encountered an internal error that prevented it from fulfilling this request.
Ktoś proszę odpowiedzieć na to pytanie.! – Gugan
To jest układ SmartGWT, ponieważ "inteligentny układ GWT" oznacza coś innego dla mnie (przeciwieństwo "głupiego layoutu GWT!"). Edytowałem to pytanie, by to naprawić. – PhiLho