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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:05:33+00:00 2026-06-04T19:05:33+00:00

I am interested in general approach for building interactive GUI using MVC3. The idea

  • 0

I am interested in general approach for building interactive GUI using MVC3.

The idea is to build set of different components that can be integrated (plugged in) into various scenarios.

Each Component MUST have it’s own model definition, controller and views.
Component encapsulates not just the view but also behavior through it’s controller.

All internal implementation details, model, behavior, etc… must reside inside component,
so that component becomes independent, modular – black box.
This allows component to be changed without breaking anything in context in which component is used.

Context in which component runs must not make any assumptions about internal details of component implementation.

On the other side the component does not make any assumptions about context in which it will be used.

Finally, the component must provide mechanism to “communicate” or “interact” with outside world. Beside internals, component must provide some kind of “external” interface (like parameters, data, functions, events whatever…) which would allow component to be integrated into execution context.

The Context (or scenario) is part which contains components.
Now, the basic challenge for the context is to manage interaction between components.

Real-world Categories component example:

Component displays list of categories and allows user to perform various actions such as sorting, paging and record selection.
Internally, it has it’s own model which stores relevant information like current page, sort, selection, etc…
Internally, it implements all required actions (for basic render, for user actions response, etc…) in it’s own controller.
Internally, it handles model state persistence in the view and model state restore in it’s own controller.

Real-world Products component example:

Component displays list of products and allows user to perform various actions such as sorting, paging and record selection.
Internally, it has it’s own model which stores relevant information like current page, sort, selection, etc…
Internally, it implements all required actions (for basic render, for user actions response, etc…) in it’s own controller.
Internally, it handles model state persistence in the view and model state restore in it’s own controller.

Real-world Dashboard page (context, scenario) example:

Page displays both Categories and Products components.
Products component displays all products for the currently selected category and thus must provide external interface (parameter or something) to receive selected category identifier from the context.
Categories component must provide some kind of external interface so that context can act when selected category changes and provide selected category identifier for the products component.

Technically, communication approach for page updates would mostly go through AJAX but if this is possible without AJAX, it would be even better.

In the case of AJAX, I would like solution which uses server side controller(s) which decides and renders what should be updated on the client (JSON or something).

I would not like solution in the client script (client side “like” controller) which decides what actions to call and what parts of page to update – this as said in previous paragraph must be decided by controller(s) on the server.

Important: It is not necessarily for the components to work when directly called via some route.

How would you generally implement described system?

  • 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-04T19:05:34+00:00Added an answer on June 4, 2026 at 7:05 pm

    Each controller handles a whole user-machine pattern. That is, roughly, each controller is responsible for orchestrating the user-machine interaction for a user-case(the user-machine patterns that are the result of the analysys phase).
    Now if you put “standard behaviours” in controllers who will coordinate the user-machine interaction pattern?
    This way you will have “components” without something that coordinate their execution.
    In web forms you have pages that coordinates the execution of components put in them…but in Mvc thi coordination role is played by the Controllers themselves.

    You can do black-boxes composed of Controllers and Views just if each of them is responsible of a whole user-machine interaction pattern. That is a “Big Components” not a small building blocks, as its is the case when you implement a CMS.

    The Orchard CMS use a similar approach. However what you call components are actually pre-defined blocks that play the role of whole sections of the websites being built by the user.

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

Sidebar

Related Questions

I'm building a site that has one authentication system for both general users and
I recognize that this is a general type of question but I'd be interested
In general, what I've observed using nm on Linux is that T symbol names
Hy, I'm interested in some general optimisation methods in an asp.net ajax project for
I'm interested in providing a general I'm making an ajax call notification ... similar
What reading would you recommend on general debugging techniques? I am more interested in
im interested how many api calls per second or per minute i can do
I'm interested in a protecting of my web application by using generation a csrf
I'm interested how I can very quickly change the Boolean values into this hashmap:
I'm really interested in becoming a serious programmer, the type that people admire for

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.