Creating a dynamic view in GWT using MVP Arch

I am starting a new project using GWT, but in this view the project will be dynamic. I will read all the metadata from the XML configuration files and create the view according to this metadata. I want to use the MVP architecture with GWT, but I need to know how I can use MVP for dynamic viewing, because all the samples that I see have static content. Do you have any suggestions?

+3
source share
1 answer

The whole point of MVP is to have a very subtle View and all the application logic inside the presenters, so that presenters can be tested locally locally without a view (which needs a browser).

Usually there is one view for one presenter. In your case, the views will be generated dynamically, which means that one DynamicView (loading different XML) and different presenters, each of which corresponds to one XML, will have one. It would be wise for the facilitators to run DynamicView with the correct XML.

Google has just released GWT 2.1, which introduces new MVP features: http://code.google.com/webtoolkit/doc/trunk/DevGuideMvpActivitiesAndPlaces.html

0
source

Source: https://habr.com/ru/post/1762799/


All Articles