Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Some basic questions I can't understand.

$
0
0
Hello, I'd like to ask some basic questions I can't figure out. I'm using smartgwt 4.1 for the first time.

1.) For example, I have two presenters binded with two views. On of them is a journal of users and the second one is the form to add user. After adding user I have to return back to the journal presenter. I want to destroy the object of the presenter which adds user. What do I have to do for that reason?

Code:

@Override
        public void onResponseReceived(Request request, Response response) {
        PlaceRequest responsePlaceRequest = new PlaceRequest.Builder().nameToken(NameTokens.userDict).build();
        placeManager.revealPlace(responsePlaceRequest);
                                  }

This is the code of presenter which I use to create user. Do I have to call unbind() after valling revealPlace()??? What is the right approach?

2.) Sometimes I need to send data from one presenter to another. For example I want to edit object's data. Do I need to use event bus for that?

3.) As I understood I have to create triple of View-Proxy-Presenter for each page of my application? Is that the right way of using smartGWT?

Viewing all articles
Browse latest Browse all 4756

Trending Articles