开发者

Show my GWT textarea Widget in two diffrent HTML pages

开发者 https://www.devze.com 2023-03-02 13:59 出处:网络
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..

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

精彩评论

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