I am using richfaces Editor component. Once I say submit button I am invoking the TaskClient's addComment method to add comments to particular task. It is supposed to save, but it is not saving the data. Any other parameters do we need to pass?
public void addComment(TaskSummary taskSummary) {
try {
taskClient.getTasksAssignedAsPotentialOwner(userid, groupids,
"en-UK", taskSummaryHandler);
BlockingAddCommentResponseHandler commentHandler = new BlockingAddCommentResponseHandler();
taskSummary.getTask().setDescription(taskSummary.getComment().getText());
taskSummary.getTask().setSubject(taskSummary.getComment().getText());
taskClient.addComment(taskSummary.getTaskId(), taskSummary.getComment(),
commentHandler);
//commentHandler.execute(1000);
//commentHandler.wait(1000);
} catch (Exception e) {
e.printStackTrace();
}
}