I recently came across Kathy Sierra - HeadFirstDesignPattern -JAVA. I have doubt regarding MVC. View has both MC interface references.But view using the controller interface API's to update the data.this controller calls the Model API and notify the view to update.
Since View has model interface , i can directly call the Model api and violate the principal of updating via controller.How to enforce the view to use controller only.
no enough info from this post : Controller in MVC design pattern
Aucun commentaire:
Enregistrer un commentaire