private boolean _mustPopEnvironment;
Object beginRender(MarkupWriter writer)
{
Block override = _resources.getBlockParameter(_model.getId() + "Cell");
if (override != null) return override;
String datatype = _model.getDataType();
if (_beanBlockSource.hasDisplayBlock(datatype))
{
PropertyDisplayContext context = new PropertyDisplayContext()
{
public Messages getContainerMessages()
{
return GridCell.this.getContainerMessages();
}
public Object getPropertyValue()
{
return readPropertyForRow();
}
};
_environment.push(PropertyDisplayContext.class, context);
_mustPopEnvironment = true;
return _beanBlockSource.getDisplayBlock(datatype);
}
Block block = _gridCellResources.findBlock(datatype);
if (block != null) return block;
Object value = _model.getConduit().get(_row);