List<Task> tasks = OperatFactory.getServiceObject(BussinessRelationServeice.class).getTasksByUserId(userId);
TaskIPKFormBean content = new TaskIPKFormBean();
content.setTasks(tasks);
AnnotationParser parser = new AnnotationParser(content, "ajax");
parser.setCurrentComponents("table");
ContentTemplate contentTemplate = (ContentTemplate) ApplicationStyle.getCurrentStyle().getTemplate(ContentTemplate.class);
contentTemplate.setParser(parser);
contentTemplate.setPermission(null);
String content1 = contentTemplate.content();
ActionContext.getResponse().getWriter().print(content1);
} catch (IOException ex) {
Logger.getLogger(Index.class.getName()).log(Level.SEVERE, null, ex);
} catch (AppException ex) {
Logger.getLogger(Index.class.getName()).log(Level.SEVERE, null, ex);