選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CreatingMultiTabApplications.asciidoc 1013B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. title: Creating Multi Tab Applications
  3. order: 84
  4. layout: page
  5. ---
  6. [[creating-multi-tab-applications]]
  7. = Creating multi-tab applications
  8. Every new request to the server gets a new session and UI instance.
  9. Having the application open in separate tabs or windows means that the
  10. instances are totally separate from each others, and thus won't conflict
  11. and cause any out of sync or similar issues.
  12. Opening the new tab will open the application into it's start page. Use
  13. URI fragments if you want to open a specific view into the secondary
  14. tab. You can read the URI fragments in the `UI.init()` and decide if you
  15. want to show the main view or a specialized view:
  16. [source,java]
  17. ....
  18. public void init(VaadinRequest request) {
  19. String person = request.getParameter("editPerson");
  20. if (person == null) {
  21. setContent(new MainView());
  22. } else {
  23. setContent(new EditPersonView(person));
  24. }
  25. }
  26. ....
  27. More examples on URI fragments and parameters can be found at:
  28. * <<UsingURIFragments#, Using URI fragments>>