我想在Vaadin 7中使用SmartGWT佈局。但是,無法獲得正確的教程或任何源代碼。任何人都可以幫助我嗎?在Vaadin 7集成SmartGWT佈局7
而且,我嘗試了SmartGWT。 我在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();
}
}
我以這種方式在Vaadin中調用Layout。
SmartGWTLayout aSmartGWTLayout = new SmartGWTLayout();
vaadinLayout.addComponent((Component)SmartGWTLayout);
而且,我得到這個錯誤
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.
有人請回答這個問題! – Gugan 2013-02-26 07:15:02
這就是SmartGWT佈局,因爲「智能GWT佈局」對我來說意味着別的東西(與「愚蠢的GWT佈局!」相反)我編輯了這個問題來解決這個問題 – PhiLho 2013-04-24 16:21:28