mvp

ASP.NET MVP Injecting Service Dependency

I have an ASP.NET page that implements my view and creates the presenter in the page constuctor. Phil Haack's post providing was used as the starting point, and I'll just the examples from the post to illustrate the question. public partial class _Default : System.Web.UI.Page, IPostEditView { PostEditController controller; pub...

MVP Pattern, Interfaces, Error Message Display in webform

Hi Experts, I am working on a webform project, where I want to implement MVP Pattern. I have gone through few articles and project based on MVP. It seems fine to me. At most of the places, If there is any need to display error message, it has been made a method in the view interface. I am giving an example here for clarity. public i...

MVC framework for WinForm application (MVC#, PureMVC)

Hi! I'm wondering which framework i should go for. As in the title, after some time of googling it seems that last battle will be between PureMVC and MVC#. For clarification my requirements are: open source free for commercial use lightweight easy to learn (I don't want to spend a lot of time trying to figure it out, no time for that)...

Session State with MVP and Application Controller patterns

Hi, I've created an MVP (passive view) framework for development and decided to go for an Application Controller pattern to manage the navigation between views. This is targeted at WinForms, ASP.NET and WPF interfaces. Although I'm not 100% convinced that these view technologies really swappable, that's my aim at the moment so my MVP f...

MVP, design question

Hi, I working on a MVP designed application and have some design questions. When writing code in the presenter-layer how should the comunication go between different presenter/viwes? Lets say I have a WindowPresenter with its WindowView and I want to set the window title on a window from another window. I have a title/set:er on the wind...

is it possible to use MVP pattern with Codesmith Ntier or PLINQO Template

Currently we are working on ASP .net application and i would prefer to go ahead with MVP pattern (for UI) due to several advantage it provides, But the con of going ahead with that approach is too much of hand coding which will eat up time. I already identified that it is possible to generate DAL with any template or by using LINQ to S...

Where do I store MVC/MVP and Service layer unit tests?

In MVC/MVP style applications that have Controller/Presenter classes within the Client Application assembly and then a Services layer assembly containing Service classes, where do people recommend storing their unit tests? For ease of execution it'd be nice to have a single Test assembly that references both the Client and Services, and...

MVP pattern user controls, presenter question

Hi Experts, I am going to start a website, where We want to implement MVP pattern. One of our page is broken into small user controls so they are used to edit or display information. But later on we save the whole information from the main page. Also during the load time, the information is sent from the main page to the controls. If...

MVP Presenter and Events

Hi, I have three views, each of which is is implemented in a user control. This all works fine when they are alone. When an item is selected in view one I need to notify the other two views that the item that they are looking at has changed. I have looked at various ways of handling this but the one that keeps coming back as the bette...

MVP Connecting The Triads

I have a main form with a left and right pane. The left pane displays a list of customers and I have a button the user clicks to show orders. When the user clicks this button I want to show the order details view described below in the right pane. I have an order details form that will be displayed within the right pane of the main form...

MVP - Model View Presenter

I have a object that is responsible for controlling screen navigation. A presenter can call one of two methods on this navigator object NavigateTo(string screenName) and NavigateTo(string screenName, object data). This latter method allows some context data to be passed to the navigator object. Would it be the wrong approach when callin...

Convert to list a object with anonymous type

I need convert to list a object with anonymous type because when i databind the gridview i get "The data source does not support server-side data paging" or How i can solve this? object o = HttpRuntime.Cache[key]; if(o is ICollection) { //Sort Object o = ((IQueryable)this.DataSource).AsQueryable().OrderBy(SortExpresion); ...

Resources on technical GUI design

Hi, I am looking for recommendations on resources (both books and websites) on designing GUI applications. By designing I mean the technical design (when and how to use data binding, when should MVC/MVP be used, what functionality should go into the model, the view, the controller/presenter, how can different parts of the UI best be kep...

MVP - Supervising Controller

Can someone tell me what component in MVP - Supervising Controller variation has the responsibility for implementing logic related to the enablement/disablement of UI elements? For example, I have a view that has a checkbox and a number of textboxes. Now 2 of the text boxes should only be enabled if the checkbox is checked. Should the...

How should I implement a UI for IsDirty using the Model-View-Presenter pattern?

I want to have a save button that is only enabled when the view isdirty. How should I approach this? My particular situation is a WinForms application using .Net 2.0. I have a service layer that the presenter calls. The service layer returns a screen bound DTO. Is it ok to bind the view to this DTO and have the DTO implement an isDirt...

The Model in MVP - Events

I have a layered architecture as follows; Presentation Service Business Data If I implement MVP for the presentation my understanding is that the Service Layer represents the 'M' i.e. model, is my understanding correct? If so from my interpretation of MVP the model can raise events which my presenters would subscribe to. Does this mean...

Models In Model View Presenter MVP

Would I be correct in thinking that the 'Model' represented by the M in MVP could be a domain model or a presentation/view model? ...

View Models / Presentation Models

Would I be correct in saying that View Models / Presentation Models are screen specific and that you would therefore not expect to share them with other screens? ...

Static View Models / Presentation Models

Would it be incorrect to make all my View Models / Presentation Models static classes so that if any other View Presenter wanted to change a view model other than its own it could easily aquire a reference to it? If this is the wrong approach how would you achieve it? ...

Getting Spring IOC to work with the MVP pattern.

Im attempting to use the MVP design pattern with a Swing application in conjution with Spring IOC. In MVP the View needs to pass itself into the presenter, and I can't work out how to do this with Spring. public class MainView implements IMainView { private MainPresenter _presenter; public MainView() { _presenter = n...