I tried posting this message earlier. I'm thinking something went wrong, or it's held up in moderation. It took too long to write the original, so I'm going to be brief this time without code.
I'm trying to adjust from C# to GWT and AppEngine. I'm struggling with the organization of client-side GWT code. Specifically, I'd like to encapsulate handlers for a given entity basically because I like to keep methods thin and cohesive; I don't want my EntryPoint.onModuleLoad method defining a bunch of handlers AND doing validation AND sending the request to the server AND creating widgets AND controlling layout AND on AND on. Ideally, I'd like someway to access my widgets that aren't currently in scope as a local variable. I can think of a couple ways this might be possible: 1.) For each widget, assign an ID to the underlying element. Then use Document to get by ID. 2.) Somehow use RootPanel to get a child widget. I guess I could also create a custom widget that would be responsible for handling a particular entity, which basically just removes that code from the EntryPoint object. Does anyone have any suggestions for me? Thanks a lot! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
