}
}
private static void _writeVariables(Writer writer, FacesContext faces, UIViewRoot view) throws IOException
{
ExternalContext ctx = faces.getExternalContext();
_writeVariables(writer, ctx.getRequestParameterMap(), "Request Parameters");
_writeVariables(writer, ctx.getRequestMap(), "Request Attributes");
if (view != null)
{
_writeVariables(writer, view.getViewMap(), "View Attributes");
}
if (ctx.getSession(false) != null)
{
_writeVariables(writer, ctx.getSessionMap(), "Session Attributes");
}
_writeVariables(writer, ctx.getFlash(), "Flash Attributes");
_writeVariables(writer, ctx.getApplicationMap(), "Application Attributes");
}