Multiple Entry Points in GWT

前端 未结 2 803
日久生厌
日久生厌 2020-12-31 02:26

I\'m getting into Google Web Toolkit, and am a little confused about the Entry Points in GWT. Google\'s docs say:

If you have multiple EntryPoints (t

相关标签:
2条回答
  • 2020-12-31 03:20

    there is one options, U can create maven project with sub projects, means U can create multi entrypoint,
    each entry point have own html. See more details

    0 讨论(0)
  • 2020-12-31 03:28

    The most straightforward way to make a GWT app is to have a single page for the entire application, and a single top-level module (defined in a .gwt.xml file). Each module has a single EntryPoint class. Then all of your different "pages" are sub-sections of the same page, ideally using GWT's history mechanism to keep track of state changes that in a non-AJAX web app would be new pages. So if you set things up this way you'll need one EntryPoint for your whole app.

    The bit of the docs that you quoted (link?) discuss what I think is an advanced use case, where you've got more than one module that you're loading on a single page.

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