GWT Modules and Web Pages

前端 未结 4 471
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 15:02

I am new to GWT and am going through the docs, examples, demos etc.

All the examples seem to have just one module which is loaded by a single html page contained in the

相关标签:
4条回答
  • 2021-02-04 15:18

    In short: Yes you can have multiple different pages in a GWT app.

    Full: You can do his in several ways, the easiest is to use the XML file where you can list the various URL points (the same you use to specify the RPC call back URL) to list multiple URL's and the corresponding classes (each class will need to inherit the correct classes to ensure it is a front end)

    You can also simply generate different screens based on different variables in the same class, however this will complicate the code and lead to messy designs.

    0 讨论(0)
  • 2021-02-04 15:25

    Usually a GWT module contains multiple 'screens', or 'views'.

    0 讨论(0)
  • 2021-02-04 15:33

    I think that using less number of the pages that needs full page reload to interact is better in GWT. In generally, you can to divide logic to many tabs, screens, windows and other layouts, that can interact without page reloading. See on the google mail )

    0 讨论(0)
  • 2021-02-04 15:35

    You can have a look at these two questions:

    • Multiple pages tutorial in Google Web Toolkit (GWT)
    • GWT with multiple host pages in a legacy application

    ...or at this site which guides you through the process, if you are new I strongly suggest to subscribe to the 5 days email course.

    0 讨论(0)
提交回复
热议问题