Hey all. I've got a question about the GWT and more specifically the mvp architecture tutorial
http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html I've been messing around with this, and extending it for my own project, but i've run into a little problem. if (token != null){ Presenter presenter = null; if (token == "user"){ presenter = new UserPresenter(userRpcService, eventBus, new UserView()); } if (token == "edit"){ presenter = new EditUserPresenter(userRpcService, eventBus, new EditUserView()); } if (presenter != null){ presenter.go(root); } In this code, we are passing the root panel to the presenter in order to tell it which panel to attach to. The problem is that I've tried attaching a couple of vertical panels to the root panel, then passing those into separate presenters so that I can display multiple presenter simultaneously, but it doesn't work. When the app loads, it will load all the seperate panels successfully, but when it tries to switch between the UserPresenter and the EditUserPresenter, all my other panels are removed from the screen. Does anyone have an answer for me why this won't work? I'm pretty stumped right now. Thanks! -- 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.
