Opening a new Window with a Widget in GWT

前端 未结 3 1628
时光说笑
时光说笑 2021-01-03 00:45

Before you start shooting me down i have checked for answers and i have googled till my fingers bled but i havent been able to find a simple, concise answer. So im asking ag

3条回答
  •  借酒劲吻你
    2021-01-03 01:36

    I agree with Bogdan: Use a DialogBox.

    If you can't, you Window.open() as you mentioned in option 1:

    1. Create another GWT module, and form.html that will load it
    2. Window.open("form.html?entry=54")
    3. Have the form gwt module read from the URL, load the entry, allow it to be edited, and provide Save and Cancel buttons
    4. Close the popup when Save or Cancel is clicked

提交回复
热议问题