Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8381873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:47:37+00:00 2026-06-09T16:47:37+00:00

A rookie here. I have this specific issue in implementing Model View Presenter Pattern

  • 0

A rookie here. I have this specific issue in implementing Model View Presenter Pattern using GWT in one of my use cases.

I just started with Ray Ryan’s Google IO talk and following some articles on Google Developers site. I have not used any of the GWT add-ons like GWTP or MVP4G or GIN or any other stuff.
Just followed the contacts example on the GWT site and tried to model my case.

Here’s the issue.

I have my AppController onValueChage method like this

   public void onValueChange(ValueChangeEvent<String> event) {
   if(token != null){
    presenter = null;

    if(token == "display")
    {

    presenter = new DefaultPresenter(rpcService, eventBus, new DefaultView());
    }
    else if(token == "popup")
    {
    presenter = new PopUpPresenter(rpcService, eventBus, new PopUpView());      
    }
    else if(token == "dialog")
    {
    presenter = new DialogPresenter(rpcService, eventBus, new DialogView());
    }

    if (presenter!= null) {
       presenter.go(container);
     }
    }
}

And my app flows like this, first Display then a selection in there causes a Dialog and then Dialog sets some variable. And then after the Dialog is hidden, i need to comeback to my original Display and carry on. But the problem is i’m not able to come back to my original DisplayPresenter with the same view because i end up creating a new instance of the presenter whenever there’s a history change.

All the things in bold are separate presenters which extends the Presenter and all of them have specific views.

Questions ?
1. Help me come out of this limbo of creating new instances of the presenters everytime there’s a history change.

  1. Is there a way in MVP pattern to pass controls between presenters with values persisting ?

  2. How to load a existing instance of a presenter inside app controller on an event fire?

  3. How to load a existing instance of a presenter inside app controller on an event fire?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:47:38+00:00Added an answer on June 9, 2026 at 4:47 pm

    With respect to passing state information between presenters (question #1) it might be helpful to check out Places.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

PHP mysql database I have created a follow on question to this one here
Rookie C++ Programmer here again I'm using VC++ VS2008 and making an attempt at
rookie here. i am using basic javascript, css to open/close div by clicking/unclicking on
Probably really a rookie question here about xcode (for the iphone).. When I issue
This should be really simple but I'm a javascript/jQuery rookie, so here we go:
Javascript rookie here. I have a small page with a first name/last name and
This is probably a rookie question but; Let's say I have an ActionResult that
I have a stored procedure that search a view using full text. I'm trying
Good day, PowerShell rookie here... If I output to the screen like this: foreach($databasePermission
this may be a rookie question for CakePHP but here it goes I design

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.