Presentation Tier
Business Tier
Integration Tier
Core J2EE
Pattern Catalog
©
CoreJ2EEPatterns
All Rights Reserved.
Last
Updated:
January 29, 2006 8:54 PM
In Association with Amazon.com
Composite View
See Core J2EE Patterns, 2nd Edition for full description of this pattern and its strategies.
Problem
You want to build a view from modular, atomic component parts that are combined to create a composite whole, while managing the content and the layout independently.
Forces
Solution
Use Composite Views that are composed of multiple atomic subviews. Each subview of the overall template can be included dynamically in the whole, and the layout of the page can be managed independently of the content.
Class Diagram
Sequence Diagram
Strategies
Consequences
Related Patterns
Excerpted from Core J2EE Patterns, 2nd Edition. See the book for full description of the pattern including class diagrams, sequence diagrams and sample code.