JBoss.orgCommunity Documentation
This event is fired through UIQuickReplyPortlet.
To receive QuickReplyEvent, you must use the ForumParameter class with five properties:
Name | Type | Possible value | Description |
---|---|---|---|
isRenderQuickReply | boolean | True/false | If the value is set to true or false, the UIQuickReplyPortlet portlet is rendered or not respectively. |
isModerator | boolean | True/false | Specify if the user is moderator of forum containing the topic with quick reply or not. |
categoryId | string | Id of category | Return the Id of category for UIQuickReplyPortlet. |
forumId | string | Id of forum | Return the Id of forum for UIQuickReplyPortlet. |
topicId | string | Id of topic | Return the Id of topic for UIQuickReplyPortlet. |
For example:
....
ActionResponse actionRes = pcontext.getResponse() ;
ForumParameter param = new ForumParameter() ;
param.setRenderQuickReply(isCanPost);
param.setModerator(isMod);
param.setCategoryId(categoryId) ;
param.setForumId(forumId);
param.setTopicId(topicId);
actionRes.setEvent(new QName("QuickReplyEvent"), param) ;;
....