org.apache.tapestry5.annotations
Annotation Type BeforeRenderBody


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
@UseWith(value={COMPONENT,MIXIN,PAGE})
public @interface BeforeRenderBody

Marks methods to be invoked when the component rendering state machine hits the point in the component's template where the body element occurs. Such methods may optionally take a MarkupWriter parameter, and may return void or boolean.

Returning true (or void) will queue up the component's body for rendering.

Returning false will skip the component's body, but continue rendering the template. The AfterRenderBody phase will still execute after the template finishes rendering.

This phase is skipped for components which do not have a body.



Copyright © 2003-2012 The Apache Software Foundation.