ResourceStreamResource resource = new ResourceStreamResource(xlsStream);
resource.setFileName(filename);
resource.setContentDisposition(ContentDisposition.ATTACHMENT);
IResource.Attributes a = new IResource.Attributes(requestCycle.getRequest(),
requestCycle.getResponse());
resource.respond(a);
}
catch (Exception e)
{
throw new RuntimeException("Error while generating a xls file to table component", e);
}