protected void doView(RenderRequest req, RenderResponse resp) throws PortletException, IOException
{
PagePortletControllerContext context = (PagePortletControllerContext)req.getAttribute("bilto");
PageEventControllerContext eventCC = null;
if (context != null)
{
eventCC = context.getEventControllerContext();
}
//
PrintWriter writer = resp.getWriter();
//
if (eventCC != null)
{
writer.print("" +
"<a href=\"javascript:showAllDetails()\" >Show All Details</a><br/>" +
"<div class=\"debug-container\">");
int id;
for (EventRoute route : eventCC.getRoots())
{
id = rand(1,1000);
writer.println("<div class=\"event\" id=\"event-" + id + "\">\n");
printRoute(route, writer, context, id, "");
writer.println("</div>\n");