• Post Reply Bookmark Topic Watch Topic
  • New Topic

BINDING attribute  RSS feed

 
Servo Alvo
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi fellows!

Isn´t the usage of binding attrib a bit not aligned with the principles of MVC architecture? I mean, once the backing bean (on the Model Tier) have access to UI components (on the View Tier) they can do whatever they want to.

Thanks in advance.



 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my experience, binding is used more often than it should be. I suspect it may have originally been the only effective way to accomplish certain things before JSF finally settled down and people have been using stale documentation. In any event, there was a lot of murkiness about how JSF was supposed to do things while it was still being drawn up.

Yes, when your "model" starts dynamically modifying the view/controller setup, that's not ideologically pure MVC (although no HTTP-based architecture can be 100% pure MVC). On the other hand, more ideologically pure solutions would probably complicate the application overmuch. A well-designed webapp shouldn't be dynamically modifying every control in sight, if for no other reason than that when no 2 views of a page are similar, the users lose track of which page they're really dealing with. But a limited amount of modification - such as dynamically adjusting the displayed columns in table - can sometimes be very useful.
 
Servo Alvo
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote: Yes, when your "model" starts dynamically modifying the view/controller setup, that's not ideologically pure MVC (although no HTTP-based architecture can be 100% pure MVC).


Tim, thank you for the quickly response but I dind´t understand why HTTP-based architecture can´t be 100% pure MVC.
 
Servo Alvo
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Up...

thank you for the quickly response but I dind´t understand why HTTP-based architecture can´t be 100% pure MVC.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!