[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2656) Watch a topic by email (or RSS?)

Damian Harvey (JIRA) jira-events at lists.jboss.org
Tue Mar 11 07:32:58 EDT 2008

    [ http://jira.jboss.com/jira/browse/JBSEAM-2656?page=comments#action_12402098 ] 
Damian Harvey commented on JBSEAM-2656:

Ok. I'll give it a go if I have some time this weekend.

Is a suitable solution: 
1. A new table WIKI_COMMENT_WATCHER with a foreign key to USERS
2. A method in ReplyHome notifyWatchers() that observes "Comment.persisted" and queries WikiCommentWatcher to create a List<User> of commentWatcherUsers. 
3. A new mailtemplate copied from forumNotifyReplies.xhtml but with a <ui:repeat> and <m:bcc> to each entry in the #{replyHome.commentWatcherUsers} and of course some different text.
4. A boolean on ReplyHome called "watchComment" 
5. An h:selectBooleanCheckbox in replyForm.xhtml underneath the replyHome.persist link
6. Override persist() in ReplyHome and after the super.persist() save the Comment and User to the WikiCommentWatcher table.

Obviously this only covers replies to forum posts and not watch Wiki pages (which would be the ultimate goal?). Is it roughly there?



> Watch a topic by email (or RSS?)
> --------------------------------
>                 Key: JBSEAM-2656
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2656
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Wiki
>            Reporter: Pete Muir
> This is necessary, especially for our non-core contributors who want to work on particular topics but don't have the resources to monitor the whole forum

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list