JBoss.orgCommunity Documentation
This event is fired through UIForumPollPortlet.
To receive ForumPollEvent, you must use the ForumParameter class with four properties:
Name | Type | Possible value | Description |
---|---|---|---|
isRenderPoll | boolean | True/false | If the value is set to true or false, the UIForumPollPortlet portlet is rendered or not respectively. |
categoryId | string | Id of category | Return the Id of category for UIForumPollPortlet. |
forumId | string | Id of forum | Return the Id of forum for UIForumPollPortlet. |
topicId | string | Id of topic | Return the Id of topic for UIForumPollPortlet. |
For example:
....
ActionResponse actionRes = pcontext.getResponse() ;
ForumParameter param = new ForumParameter() ;
param.setCategoryId(categoryId) ;
param.setForumId(forumId);
param.setTopicId(topicId);
param.setRenderPoll(topic.getIsPoll());
actionRes.setEvent(new QName("ForumPollEvent"), param);
....