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

  • Home
  • SEARCH
  • 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 148085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:53:43+00:00 2026-05-11T08:53:43+00:00

I have a ui that looks like this: +——–+—————+ | model1 | model details

  • 0

I have a ui that looks like this:

    +--------+---------------+     | model1 | model details |     | model2 |     here,     |     | model3 | loaded as the |     |        | user selects  |     |        | a model from  |     |        |   the left.   |     |        |               |     +--------+---------------+ 

I’m using the MVP pattern to drive this ui.

I’m simplifying a lot here, but in order to divide and conquer I would like to split the Presenter into two: one that handles user gestures in the View on the left (the user changes the Model list in this View, eg sorting) and another Presenter that handles user gestures in the View on the right (the user changes the individual model in this View).

While the Presenter on the left interacts with the entire list of Models, the Presenter on the right interacts with only a single Model: the one the user selects from the list on the left. IOW the ui is driven from left to right.

After the user chooses (ie, clicks) a model on the left, my current implementation looks like (roughly):

LeftPresenter.onModelClick = function(event) {     var model = this.getModelFromEvent(event);     this.view.setSelectedModel(model); // updates list widget on left     RightPresenter.setSelectedModel(model); // notify the other Presenter }  RightPresenter.setSelectedModel = function(model) {     // lazy load the model from the db, and update the     // view when the model fires the 'loadComplete' event     model.bind('loadComplete', this.view.setModel);     model.lazyLoad(); } 

Here is the part I am fuzzy on wrt the MVP pattern, or any MVC GUI pattern for that matter:

  1. Can a ui be driven by multiple Presenters like this?
  2. Should multiple Presenters be decoupled or can they communicate directly with each other as shown here?

So my question boils down to: what’s the best way to indicate to RightPresenter that the user selected a model in LeftPresenter‘s view?

  • 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. 2026-05-11T08:53:44+00:00Added an answer on May 11, 2026 at 8:53 am

    1. Can a ui be driven by multiple Presenters like this?

    Yes

    2. Should multiple Presenters be decoupled or can they communicate directly with each other as shown here?

    The way I handle it that I have a framework that looks like this

    When a event occurs the UI_Object handle the event creating and firing a Command object. Each UI_Object implements a View Interface found in UI_Views and registers itself with UI_View. The Command Objects can access the registered UI Object in UI_View through the interfaces.

    For example in one of my metal cutting applications there is a screen element called the HOLD which contains all the parts that hasn’t been placed on a sheet of metal for cutting. A part can get into the hold several ways. Loaded from a part file, created by a shape editor, created by our CAD Screen, or picked up from a sheet of metal.

    Each of these operations are encapsulated into separate Command objects implementing the Command Design Pattern. When the command object execute it calls.

    CuttingScreen.Refresh CADScreen.Refresh ShapeEditor.Refresh 

    Each of these will refresh the respective screen updating the hold.

    Now I could add a method to my application interface. MyCuttingApplication.HoldRefresh that will in turn call all three refresh.

    But the important point is that your view call a command that uses the interface implemented by the view to update. That the view object registers itself in a lower layer.

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

Sidebar

Ask A Question

Stats

  • Questions 78k
  • Answers 78k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer I'm pretty sure you can't use len or slice because… May 11, 2026 at 3:55 pm
  • added an answer Since you are using a 10g client, it's advisable to… May 11, 2026 at 3:55 pm
  • added an answer Screen capture is a Win32 FAQ for 18 years. See… May 11, 2026 at 3:55 pm

Related Questions

I have a ui that looks like this: +--------+---------------+ | model1 | model details
Some APIs, like the WebClient, use the Event-based Async pattern . While this looks
I have a win form UI that looks like a typical calculator. Naturally I
I'm working on a Silverlight Project with all the features and limitations that entails.
I have some UI in VB 2005 that looks great in XP Style, but

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.