JBoss.orgCommunity Documentation
This event is fired through UIForumModeratePortlet.
To receive ForumModerateEvent, you must use the ForumParameter class with two properties:
Name | Type | Possible value | Description |
---|---|---|---|
isRenderModerator | boolean | True/false | If the value is set to true or false, the UIForumModeratePortlet portlet is rendered or not respectively. |
moderator | list of strings | List of user name | Set data for UIForumModeratePortlet. |
For example:
....
List<String> moderators = Arays.asList(forum.getModerators());
ActionResponse actionRes = pcontext.getResponse() ;
ForumParameter param = new ForumParameter() ;
param.setModerators(moderators);
param.setRenderModerator(true);
actionRes.setEvent(new QName("ForumPollEvent"), param);
....