Search code examples
gwtmvpgwt-platform

gwtp programmatically bind presenter and views


I have Presenter and two Views ( View1, View2), and have a Constants object (from a property file) with a defaultView() function, how could I bind View1 to te Presenter if the result of the defaultView() function is 1 and View2 in any other results?


Solution

  • Since GWT doesn't have reflection API, you'll need to use Deferred Binding . You'll need to write a custom generator.