You need to look at the method com.mendix.webui.FeedbackHelper.addRefreshClass() . There are a couple of actions in CommunityCommons that use this method you can look at to see working examples.
Hope this helps.