You are on page 1of 1

e Model-View-Controller (MVC)

architectural pattern, which is commonly used in modern user interface


frameworks, and how it has been adopted for the Web (and JSF).
-------------
MVC was first popularized with Smalltalk (Goldberg & Robson 1983) and is
now used in many modern user interface frameworks. One of the primary
benefits of MVC is that it provides reusable components for interactive user
interfaces. Swing does this admirably for rich Java clients, while Struts does s
o
to a lesser extent on the Web.

--------------------
Patterns typically exist at a higher level of abstraction than the implementatio
ns
they describe. Indeed, this is one of the primary benefits of patterns to
describe a general solution to a recurring problem. A
-------------
Solution
The MVC Pattern provides a flexible solution to these problems by decoupling
the Model, View, and Controller components of an application while providing
a uniform interface between them. It is often appropriate if one or more of
the following statements are true:
>> You wish to provide different representations of the same application
data (for example, a table versus a graph).
>> You wish to provide different looks and feels (perhaps for different
operating systems) for your user interface without affecting the rest of
your application.
>>User-driven events must immediately update application data or other
user interface components, while changes to application data must be
reflected immediately in user interface components.
>> You wish to reuse one or more user interface components independently
of application data.

-----------------

You might also like