net.sf.tacos.ajax.components
Interface PartialRenderBlock

All Known Implementing Classes:
Tree

public interface PartialRenderBlock

Handles management of partial requests/renders that are not contained within a Part component.

Author:
jkuhnert

Method Summary
 void beforeRenderBody(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle, Serializable partId, boolean isRendering)
          Invoked before this blocks body is rendered.
 org.apache.tapestry.IMarkupWriter getPartWriter(Serializable partId)
          Returns the IMarkupWriter to use to print the contents of the specified part area.
 void incrementNonRenderBlock()
          Called to give components a chance to increment anything they may be doing in a looping structure for part blocks that don't actually get called because they aren't in the current partial cycle.
 

Method Detail

beforeRenderBody

void beforeRenderBody(org.apache.tapestry.IMarkupWriter writer,
                      org.apache.tapestry.IRequestCycle cycle,
                      Serializable partId,
                      boolean isRendering)
Invoked before this blocks body is rendered.

Parameters:
writer -
cycle -
partId -
isRendering - True if render is being requested with a valid writer

getPartWriter

org.apache.tapestry.IMarkupWriter getPartWriter(Serializable partId)
Returns the IMarkupWriter to use to print the contents of the specified part area. The returned writer doesn't necessarily need to be directly associated with the specified part.

Parameters:
partId - The Part or area of contents unique id.
Returns:
A valid writer, or null if none are available.

incrementNonRenderBlock

void incrementNonRenderBlock()
Called to give components a chance to increment anything they may be doing in a looping structure for part blocks that don't actually get called because they aren't in the current partial cycle.

Currently being used to increment things like EvenOdd tapestry beans.