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 8229125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:41:40+00:00 2026-06-07T16:41:40+00:00

I can see several ways of doing this. Have a reference to a single

  • 0

I can see several ways of doing this.

  • Have a reference to a single controller in the model. Model sends event to this controller and other controllers get to know it through the hierarchy and passes on to views

  • Have all interested controllers be listeners on the model (the model has a list of listeners ). The view gets to know the change through the controller

  • Have all interested views be listeners on the model. ( The view gets to know the change directly)

    Which is appropriate and why?

  • 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-07T16:41:42+00:00Added an answer on June 7, 2026 at 4:41 pm
    • your third Option is old school. The views get notified by the model, and the view decides how to handle this. It’s okay but other options are better.

    • your second option sounds good. The views get notified by the controller(make sure you have different controller for updating the views and updating the model). So the controller can modifiy the events before passing them to the view. The controller can hier customise the Data for the views. the View shouldn’t do this, there job is only to show something(in option three the views have to do this).

    • your first option is a small improvment of option two with a hierarchy. It’s may be better in a complex scenario, to filter the event passing. But normaly this will blow up the overhead. So it is harder to read.

    I would choose option two. It’s the best trade of simple code and the option for complex actions.

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

Sidebar

Related Questions

In Microsoft SQL Server: I have seen this question several times, but can't see
You can see what I am trying to do below. Two ways I have
I just want to know if I can see several videos at once from
Say a table has several subclass types. How can I see all columns from
I can see some potential difficulties with this concept but the idea is: I
I see several people saying that WPF can use Custom Type Descriptors for Change
I can set a property on ValueStack in several ways. ValueStack stack = ActionContext.getContext().getValueStack();
We have a page of search results which the user can hit in several
There are several ways to construct an immutable list in Scala (see contrived example
I can see the Graphical Layout of the XML file within the /res/layout folder,

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.