I am struggling in getting the structure of my GWT application right. (Am I the only one one who finds that GWT code very easily ends up very messy and unreadable?)
The application is supposed to be an interface to a couple of quite distinct areas - let us say area A and B. At the moment i am trying to implement it as an interface with two tabs - one taking you to area A and one taking you to area B. I do not see how I can have a nice separation of the code needed for the two different areas in this way though - applying the MVP pattern (which I actually do not find that clear how to do in a case of a hierarchic interface like my tabs) I end up having area A and area B code in for instance both the client.view and the client.presenter package:
src
- main
- java
- client
+ event
- presenter
+ a_stuff
+ b_stuff
- view
+ a_stuff
+ b_stuff
:
I have not been able to find any good examples of how and when to use multiple modules and I am wondering if my case might be one where multiple modules would make sense? How would the code be structured in that case?
Maybe it is relevant to mention that I am using the latest GWT, Maven and IntelliJ IDEA.
Hints would be greatly appreciated, thanks a lot from Stine :)