final RenderCommand rootRenderCommand = _pageRenderQueue.getRootRenderCommand();
final String formId = _request.getParameter(FORMID_PARAMETER);
final Base64ObjectOutputStream actions = new Base64ObjectOutputStream();
final RenderCommand cleanup = new RenderCommand()
{
public void render(MarkupWriter writer, RenderQueue queue)
{
try
{
actions.close();
}
catch (IOException ex)
{
throw new RuntimeException(ex);
}
_environment.pop(ValidationTracker.class);
FormSupportImpl formSupport = (FormSupportImpl) _environment.pop(FormSupport.class);
formSupport.executeDeferred();
writer.element("input",
"type", "hidden",
"name", Form.FORM_DATA,
"value", actions.toBase64());
}
};
final RenderCommand setup = new RenderCommand()
{