_queue.push(command);
}
public void run(MarkupWriter writer)
{
RenderCommand command = null;
boolean traceEnabled = _logger.isTraceEnabled();
// Seems to make sense to use one try/finally around the whole process, rather than
// around each call to render() since the end result (in a failure scenario) is the same.
try
{
while (!_queue.isEmpty())
{
command = _queue.pop();
if (traceEnabled) _logger.trace(String.format("Executing: %s", command));
command.render(writer, this);
}
}
catch (RuntimeException ex)
{
// This will likely leave the page in a dirty state, and it will not go back into the