vendredi 23 janvier 2015

Is it useful to use mediator pattern with MVC?

The question is about ideology of the MVC design pattern. By definition, the view is communicating with the controller directly. For instance, in JSF as well as ASP.NET web-forms, we can bind the property of the controller to a specific area of a web-page. But in this case we're doing that by directly wirte an expression like



<h:outputText value="#{partnerController.lastAccessDate}"/>


Would it be useful to create a mediator between views and controllers? I need, for instance, "send a message" to a several controller in a specific way.


Aucun commentaire:

Enregistrer un commentaire