Component Specifications

Every component has a component specification, a file ending in .jwc whose root element is <component-specification>.

Each component's specification defines the basic characteristics of the component:

Beyond those additions, a component specification is otherwise the same as a <page-specification>.

When a component is referenced in an HTML template (using the @Type syntax), or in a specification (as the type attribute of a <component> element), Tapestry must locate and parse the component's specification (this is only done once, with the result cached for later).

Tapestry searches for components in the following places:

Generally, the correct place is in the WEB-INF folder. Components packaged into libraries have a different (and simpler) search.



[3] This is a very rare option that will only occur when a single WAR file contains multiple Tapestry applications.