Relative Content

Tag Archive for mvc

Why put the business logic in the model? What happens when I have multiple types of storage?

I always thought that the business logic has to be in the controller and that the controller, since it is the ‘middle’ part, stays static and that the model/view have to be capsuled via interfaces. That way you could change the business logic without affecting anything else, program multiple Models (one for each database/type of storage) and a dozens of views (for different platforms for example).

Views : ViewControllers, many to one, or one to one?

I have developed an Android application where, typically, each view (layout.xml) displayed on the screen has it’s own corresponding fragment (for the purpose of this question I may refer to this as a ViewController).

How properly perform passing operation result to View

I’m developing web site on self made MVC engine.
I have actionController that handles operations like register, login, post submit and etc. actionController receives operation name and parameters.
Of course it mast handle errors such user with same nick already exists or password is to short about which action handler have to notify user. The question is which is the best way to organize errors, such that View could easily get localized user notification message.

Implement service layer in MVC

We have a defined service layer hosted in WCF. We are now building a website that will need to use the services functionality. The website is being written in ASP.NET MVC 4 and I’m trying to decide how to reference the WCF service from the MVC app. It’s a large complex website and it will be changing on a weekly basis.

Using MVC in a Java app

I need to write a cross-platform GUI application to process (in multiple threads) and visualize fairly large quantities of data. Ideally the application should be relatively fast and look good.