Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    MVC/Modularity

    Are there any examples (beside the showcase MVC example) on how to best write modular and/or framework-based applications using SmartGWT? Specifically, is there a proper way to write applications with SmartGWT that separate logic from the view and decouple code?

    I ask this knowing that the use of datasources alleviates the need for much of this when it comes to databound components. However, if I have, say, a button to click that would make a DMI/RPC to the server to start a process, how can I (in a best-practice fashion) make that call and handle the result?



    Thanks,

    #2
    This is system-dependent. You should come up with a scenario where having the code in eg the button click handler is inconvenient with respect to one of your requirements (eg subclasses and overriding, logging etc). Then use that requirement to understand how to arrange the code.

    Comment

    Working...
    X