This is what I'm doing.

public class OneMoreActivity extends AbstractActivity implements
OneMoreView.Presenter {
        OneMorePlace place;
        OneMoreView oneMoreView;
        PlaceController placeController;
        public OneMoreActivity(OneMorePlace place, ClientFactory
clientFactory){
                this.place =place;
                oneMoreView = clientFactory.getOneMoreView();
                placeController = clientFactory.getPlaceController();
        }

        @Override
        public void start(AcceptsOneWidget panel, EventBus eventBus) {
                oneMoreView.setPresenter(this);
                panel.setWidget(oneMoreView);
        }

        @Override
        public void onButtonClick(String str) {

                placeController.goTo(new GoodbyePlace(str));
        }

}


Also I modified HelloViewImpl, it starts OneMoreActivity not
GoodbyeActivity. Everything works as supposed except navigation back.

@UiHandler("goodbyeLink")
        void onClickGoodbye(ClickEvent e)
        {
                listener.goTo(new OneMorePlace(name));
        }

On Dec 2, 4:07 pm, David Chandler <[email protected]> wrote:
> Hi Andrey, what do you mean by "OneMoreActivity starts GoodByeActivity"? Can
> you please post the code for OneMoreActivity?
>
> /dmc
>
>
>
>
>
>
>
>
>
> On Thu, Dec 2, 2010 at 4:52 PM, ailinykh <[email protected]> wrote:
> > Hello, everybody!
> > I slightly modified hellomvp example, I just added one more place/
> > activity/view. It's called OneMorePlace, OneMoreActivity, OneMoreView.
>
> > So right now I have scenario like this- HelloActivty starts
> > OneMoreActivity, OneMoreActivity starts GoodByeActivity.
>
> > But when I tried to step back from GoodByeActivity I get loop
> > GoodByeActivity -> OneMoreActivity -> GoodByeActivity ->
> > OneMoreActivity ...
> > I never get back to default (HelloPlace) place.
> > The same happens in my real application. What could be wrong? Any
> > ideas?
>
> > Thank you,
> >  Andrey
>
> > --
> > 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]<google-web-toolkit%2Bunsubs 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web 
> Toolkithttp://googlewebtoolkit.blogspot.com/

-- 
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.

Reply via email to