2 Replies Latest reply on Oct 10, 2011 3:33 AM by uvijayreddy657

    Adding comments and attachments to the particular task

    uvijayreddy657 Newbie

      how to add comments and attachments to the task?

        • 2. Re: Adding comments and attachments to the particular task
          uvijayreddy657 Newbie

          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();

                  }

              }