I m trying to use the built-in comments functionality within a JSF 2.0/ICEfaces portlet application (the application is running fine already). Unfortunately there seems to be no detailed documentation about the comments stuff yet so I hope somebody can give me some pointers how to create and retrieve comments that should be linked to a single integer.
To be more clear... I d like to (re-)use the "Page Comments" portlet s functionality within my custom portlet, but only the underlying service, not the UI part.
I already figured out that MBMessageServiceUtil.addDiscussionMessage(...) is used by that portlet through the EditDiscussionAction class. Unfortunately I have no clue what I should provide as parameter values. Could anybody shed some light on this? The javadoc is kind of... short ;-)
public static MBMessage addDiscussionMessage(long groupId,
String className,
long classPK,
String permissionClassName,
long permissionClassPK,
long threadId,
long parentMessageId,
String subject,
String body,
ServiceContext serviceContext)
Cheers, tamm0r