开发者

Show my GWT textarea Widget in two diffrent HTML pages

I'm wondering if it is possible to show my GWT textarea widget in two diffrent HTML pages? As when 开发者_运维知识库i try it doesn't work.. Thanks,


You can not use the same instance of a widget in two places at once. You can use two instances of the same widget in different places however you like.

Won't work:

TextArea textArea = new TextArea();
panel1.add(textArea);
panel2.add(textArea);

Will work:

TextArea textArea1 = new TextArea();
TextArea textArea51 = new TextArea();
panel1.add(textArea1);
panel2.add(textArea51);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜