Questions tagged [passive-view]
46 questions
3
votes
9 answers
Why did Microsoft choose MVC for ASP.NET?
In addition to being a 30 year pattern, MVC was never meant for current applications. MVP was its successor and designed to handle event based apps coming out in the 90s. Passive View and Supervising Controller seem to have risen to the top. For…

4thSpace
- 43,672
- 97
- 296
- 475
3
votes
2 answers
How to expose properties of a user control in .NET for the MVP pattern
I am implementing a simple UserControl that is actually a fancy TextBox. One of its features is that you can set a formatting specification and this formatting get's applied to its contents automatically. For example, if you set the formatting…

prekageo
- 358
- 3
- 15
3
votes
3 answers
MVP Passive View - keeping view data and model data separate
I have implemented an MVP triad using the passive view pattern - i.e. the view contains only simple getters and setters. However I am having trouble seperating the view data and model data. In particular when handling a change in the view state.
The…

Kildareflare
- 4,590
- 5
- 51
- 65
3
votes
1 answer
MVP: Presenter-Model communication
I have a design question about the communication between the model and the presenter in the MVP design pattern -- or more accurately its derived form the passive view.
Let's assume the following simple GUI as an example: I have a window where my…

david
- 471
- 4
- 13
3
votes
1 answer
MVP with multiple views: Sending events the right way
I am trying to implement MVP with Passive View for the first time, but I am a little confused as to who is notifying whom in this pattern. I understand that views notify the presenter if they get changed, and the presenter in turn notifies everyone…

dpk
- 31
- 2
2
votes
4 answers
Data binding in passive view approach
As it mentioned in "Build your own CAB" blog post series when you are rolling on Passive View design pattern it's not possible to take advantages of Data Binding. It is not so clear for me as I want it be. So, could any one of you guys show any…

kseen
- 359
- 8
- 56
- 104
1
vote
1 answer
Creating UI components dynamically in a Model-PassiveView-Controller
In a GUI application, I am using an MVC with a Passive View, as described here.
This pattern is yet another variation on model-view-controller and model-view-presenter. As with these the UI is split between a view that handles display and a…

fury
- 597
- 1
- 4
- 15
1
vote
1 answer
Javascript MVP (Passive View) library
Working on a large GWT, makes me fall in love with MVP pattern that comes with GWT. Basically its a passive view, where a controller knows all the business logic, and the view is as dump as possible. The cool thing with this is that you can easily…

Andreas Köberle
- 106,652
- 57
- 273
- 297
1
vote
3 answers
Passive view in JavaScript
I'm thinking about an implementation of MVP - Passive View pattern in JavaScript. In most case the view will be simple dom elements where the presenter attaching event listeners. But when it comes to widgets like JavaScript based pseudo…

Andreas Köberle
- 106,652
- 57
- 273
- 297
1
vote
1 answer
passive view and display logic
In MVC and MVP and similar patterns there's often the approach of the "passive view" which is as stupid (contains as few logic) as possible. This should facilitate unit testing and create a clearer separation of view and model.
I know that those…

genesys
- 11
- 1
1
vote
1 answer
Should a Presenter in the Model-View-Presenter pattern handle multiple 'UI' elements on a View?
I am implementing a Diagram/Flow-Chart type designer using a Model-View-Presenter (MVP) pattern in WPF.
I have often though of this pattern (and some of the others such as Passive View and MVVM) as high level architectures that fail to address some…

TheJediCowboy
- 8,924
- 28
- 136
- 208
1
vote
1 answer
MVP with Gridview Selected Row
I'm trying to implement MVP pattern (using webforms) for a project I'm working on, but I'm getting bogged down in what to do after an event, and in particular, one that originates from a gridview. Currently, view implements an interface so that…

user676767
- 255
- 2
- 12
1
vote
4 answers
My presenter needs to prompt the user for more information. How do I wire it up?
I'm working with the Passive View pattern. The user clicks a new account button. The view delegates responsibility to the presenter using parameterless method calls.
The problem is there are multiple account types so the user needs to pick which one…

Kenneth Cochran
- 11,954
- 3
- 52
- 117
1
vote
3 answers
How should I expose hierarchical data from a TreeView control to a MVP presenter?
I have some hierarchical data in a Winforms TreeView control and I need to expose it as a property so my presenter can synchronize changes to it. Just to be clear, I'm using the Passive View pattern. With most WinForm controls this is a no-brainer.…

Kenneth Cochran
- 11,954
- 3
- 52
- 117
0
votes
1 answer
Using MVP, how to create a view from another view, linked with the same model object
Background
We use the Model-View-Presenter design pattern along with the abstract factory pattern and the "signal/slot" pattern in our application, to fullfill 2 main requirements
Enhance testability (very lightweight GUI, every action can be…

Dinaiz
- 2,213
- 4
- 22
- 32