Documente Academic
Documente Profesional
Documente Cultură
Overview
Since the advent of Servlets and JSPs, one of the biggest problems that
has plagued the Java web development community is the separation of
presentation and content. There has been various attempts to solve this
problem. Some use a template approach that introduces a whole new set of
tags intermixed with some HTML and even some programming constructs.
While other solutions take it to the other extreme where everything is done
in code. Tapestry's unique solution to the problem is to keep the
presentation in HTML (or other standard markup language), define the
content in Java and tie the two together with an XML specification; and a
grouping of these three pieces makes a Tapestry component which is the
logical unit of a Tapestry application.
A Tapestry component, technically referred to as JWC (Java Web
Component), is a web component that can be composed, instantiated,
configured and aggregated to compose other components. And so is the
web page itself (a specialized JWC, technically referred to as "Page.