I have a question about managing a multi-page GWT website. So far I have only one html page in which I insert a lot of divs to store the widgets that I use. Then, in accordance with the user's actions, I add or remove the necessary divs using the DOM class of the GWT class. Therefore, I use only one html page to simulate multiple pages. Is there a better way to do this?
Thanks.
I do not agree with cletus. In my experience, gwt is as good at expanding multi-page application applications as it is in single-page applications like gmail. It just depends on your requirements for your web application.
I agree that writing single-page applications is certainly the place to start, but once you get the concept of gwt modules, you can easily use them to add custom javascript to multiple pages.
To answer your question; I think your design of using a single page and replacing widgets is perfectly acceptable.
These conversations can help you talk about when multi-page applications can make sense:
Effective GWT: Development of a complex, high-performance application with Google Web Toolkit
Gradually Improve AJAX Applications with the Google Web Toolkit and GQuery
GWT . . , Javascript. . , GMail. 1-5 , . , , , ?
. ( ) . , -, HTML.
-, , GWT DeckPanel. , "" GWT. "" , , . , "" , .
MVC (--) MVP (--).
, - , Gmail, back/forward. ,
DeckPanel History, , GWT, JS , runAsync. "" .
LazyPanel.createWidget() - runAsync, DeckPanel TabPanel . / ( ).
Source: https://habr.com/ru/post/1723060/More articles:DataGridView / Enter Key? - datagridviewphp session.use_trans_sid - phpUINT64 casting for swimming? - c ++clojure проблема с rmi classpath - classpathWPF 3.5 Weakening functions for animation? - animationDetecting drag and drop operations in an external application using .Net - c #less restrictive GPL-like license - licensingHow to configure NHibernate to map to an array if there is no index in the table? - nhibernateHow to update Extjs progress bar with JSON results? - jsonВключает ли в себя полное пространство имен замедление работы? - c#All Articles