-
1. Re: Adding comments and attachments to the particular task
tsurdilovic Oct 9, 2011 3:56 PM (in response to uvijayreddy657)What editor(s) are you using?
-
2. Re: Adding comments and attachments to the particular task
uvijayreddy657 Oct 10, 2011 3:33 AM (in response to tsurdilovic)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();
}
}