Index: lams_tool_forum/conf/language/ApplicationResources.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/conf/language/Attic/ApplicationResources.properties,v
diff -u -r1.5 -r1.6
--- lams_tool_forum/conf/language/ApplicationResources.properties 8 Jun 2006 07:37:34 -0000 1.5
+++ lams_tool_forum/conf/language/ApplicationResources.properties 9 Jun 2006 06:16:38 -0000 1.6
@@ -44,7 +44,7 @@
lable.topic.title.replies =Replies
lable.topic.title.mark =Mark
lable.topic.subject.by =By
-label.back.to.forum =Go back to froum
+label.back.to.forum =Go back to forum
lable.topic.title.message.number =# of Msg
lable.topic.title.average.mark =Aver mark
authoring.exception =There is a problem in forum authoring page, the reason is {0}
@@ -65,7 +65,7 @@
message.monitoring.edit.activity.not.editable =This Activity is no longer editable
errors.header =
errors.footer =
-error.valueReqd =Value Required
+error.valueReqd =Value required
error.inputFileTooLarge =Input File size is too large!
error.uploading =error uploading
error.mark.needNumber =Mark must be int value
@@ -142,5 +142,6 @@
#======= End labels: Exported 130 labels for en AU =====
#======= New labels: after 12/05/2006 =============
authoring.msg.cancel.save=Do you want to close this window without saving?
+#======= New labels: after 08/06/2006 =============
define.later.message=Please wait for the teacher to define this part.
run.offline.message=This activity is not being done on the computer. Please see your instructor for details.
Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/ForumConstants.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/ForumConstants.java,v
diff -u -r1.25 -r1.26
--- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/ForumConstants.java 18 May 2006 01:57:58 -0000 1.25
+++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/ForumConstants.java 9 Jun 2006 06:16:40 -0000 1.26
@@ -80,5 +80,7 @@
public static final String TITLE = "title";
public static final String INSTRUCTIONS = "instructions";
public static final String PAGE_EDITABLE = "isPageEditable";
+
+ public static final String ROOT_TOPIC_UID = "rootUid";
}
Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/LearningAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/LearningAction.java,v
diff -u -r1.30 -r1.31
--- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/LearningAction.java 8 Jun 2006 07:37:33 -0000 1.30
+++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/LearningAction.java 9 Jun 2006 06:16:39 -0000 1.31
@@ -303,6 +303,7 @@
setAuthorMark(msgDtoList);
request.setAttribute(ForumConstants.AUTHORING_TOPIC_THREAD, msgDtoList);
+ request.getSession().setAttribute(ForumConstants.ROOT_TOPIC_UID,topicId);
return mapping.findForward("success");
}
@@ -362,7 +363,7 @@
private ActionForward newReplyTopic(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
Long parentId = new Long(WebUtil.readLongParam(request, "parentId"));
-
+
// get parent topic, it can decide default subject of reply.
MessageDTO topic = getTopic(parentId);
@@ -375,6 +376,7 @@
// cache this parentId in order to create reply
request.getSession().setAttribute("parentId", parentId);
+
return mapping.findForward("success");
}
@@ -390,6 +392,7 @@
private ActionForward replyTopic(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
Long parentId = (Long) request.getSession().getAttribute("parentId");
+
Long sessionId = (Long) request.getSession().getAttribute(
AttributeNames.PARAM_TOOL_SESSION_ID);
MessageForm messageForm = (MessageForm) form;
@@ -412,8 +415,9 @@
Long rootTopicId = forumService.getRootTopicId(parentId);
List msgDtoList = forumService.getTopicThread(rootTopicId);
setAuthorMark(msgDtoList);
+
request.setAttribute(ForumConstants.AUTHORING_TOPIC_THREAD, msgDtoList);
-
+
return mapping.findForward("success");
}
@@ -460,6 +464,7 @@
throws PersistenceException {
// get value from HttpSession
Long topicId = (Long) request.getSession().getAttribute("topicId");
+
forumService = getForumManager();
MessageForm messageForm = (MessageForm) form;
@@ -495,7 +500,7 @@
List msgDtoList = forumService.getTopicThread(rootTopicId);
setAuthorMark(msgDtoList);
request.setAttribute(ForumConstants.AUTHORING_TOPIC_THREAD, msgDtoList);
-
+
return mapping.findForward("success");
}
Index: lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/web/WEB-INF/struts/Attic/tiles-defs.xml,v
diff -u -r1.24 -r1.25
--- lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml 9 Jun 2006 01:58:45 -0000 1.24
+++ lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml 9 Jun 2006 06:16:40 -0000 1.25
@@ -25,23 +25,15 @@
-