Jakarta > Tapestry
Jakarta
 

Block

Contains markup and other components, and defers rendering of its body until invoked by a RenderBlock.

See also: org.apache.tapestry.components.Block, RenderBlock

Parameters

No parameters

Body: allowed

Informal parameters: forbidden

Reserved parameters: none

When a Block component renders normally, it does absolutely nothing. It doesn't render any tag, or render its body. However, a RenderBlock component can be passed a Block instance, which will trigger the Block to render its body.

The parameters of the RenderBlock, including informal parameters, are indirectly available to the Block component. The OGNL expression components.block.getParameter("name") returns the value of a parameter bound to the RenderBlock which invoked the rendering of the Block's body.

Example

The RenderBlock component has an extensive example.