com.primix.tapestry.components
Class InsertBlock

java.lang.Object
  |
  +--com.primix.tapestry.AbstractComponent
        |
        +--com.primix.tapestry.components.InsertBlock
All Implemented Interfaces:
IComponent, IRender

public class InsertBlock
extends AbstractComponent

Renders the text and components wrapped by a Block component.

It is possible for an InsertBlock to obtain a Block from a page other than the render page. This works, even when the Block contains links, forms and form components. The action and direct services will create URLs that properly address this situation.

However, because the rendering page can't know ahead of time about these foriegn Blocks, PageRenderListener methods (for components and objects of the foriegn page) via InsertBlock will not be executed. This specifically affects the methods of the PageRenderListener interface.

Parameter Type Read / Write Required Default Description
block Block R no   The Block whose contents are to be rendered.

Informal parameters are not allowed. The component may not have a body.

Version:
$Id: InsertBlock.java,v 1.7 2001/08/28 20:33:41 hship Exp $
Author:
Howard Ship

Fields inherited from class com.primix.tapestry.AbstractComponent
id, page, specification, wrapped, wrappedCount
 
Constructor Summary
InsertBlock()
           
 
Method Summary
 IBinding getBlockBinding()
           
 void render(IResponseWriter writer, IRequestCycle cycle)
          If the block parameter is bound and not null, then IComponent.renderWrapped(IResponseWriter, IRequestCycle) is invoked on it.
 void setBlockBinding(IBinding value)
           
 
Methods inherited from class com.primix.tapestry.AbstractComponent
addAsset, addComponent, addWrapped, cleanupAfterRender, cleanupComponent, finishLoad, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getPage, getSpecification, prepareForRender, renderWrapped, reset, setBinding, setContainer, setId, setPage, setSpecification, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertBlock

public InsertBlock()
Method Detail

setBlockBinding

public void setBlockBinding(IBinding value)

getBlockBinding

public IBinding getBlockBinding()

render

public void render(IResponseWriter writer,
                   IRequestCycle cycle)
            throws RequestCycleException
If the block parameter is bound and not null, then IComponent.renderWrapped(IResponseWriter, IRequestCycle) is invoked on it.