Index: lams_tool_forum/conf/language/ApplicationResources.properties
===================================================================
diff -u -r71a37d456ee2d1d277774c125ac645ef7f06fa00 -r6852794f79069c9b70ee194f74677323d0bf14b7
--- lams_tool_forum/conf/language/ApplicationResources.properties (.../ApplicationResources.properties) (revision 71a37d456ee2d1d277774c125ac645ef7f06fa00)
+++ lams_tool_forum/conf/language/ApplicationResources.properties (.../ApplicationResources.properties) (revision 6852794f79069c9b70ee194f74677323d0bf14b7)
@@ -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
===================================================================
diff -u -r12f7e39b451ed00ce91cffcf66efd129252d2cfc -r6852794f79069c9b70ee194f74677323d0bf14b7
--- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/ForumConstants.java (.../ForumConstants.java) (revision 12f7e39b451ed00ce91cffcf66efd129252d2cfc)
+++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/ForumConstants.java (.../ForumConstants.java) (revision 6852794f79069c9b70ee194f74677323d0bf14b7)
@@ -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
===================================================================
diff -u -r71a37d456ee2d1d277774c125ac645ef7f06fa00 -r6852794f79069c9b70ee194f74677323d0bf14b7
--- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/LearningAction.java (.../LearningAction.java) (revision 71a37d456ee2d1d277774c125ac645ef7f06fa00)
+++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/LearningAction.java (.../LearningAction.java) (revision 6852794f79069c9b70ee194f74677323d0bf14b7)
@@ -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
===================================================================
diff -u -r427a3b63491fb2f3206a785705ac247af49e1360 -r6852794f79069c9b70ee194f74677323d0bf14b7
--- lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml (.../tiles-defs.xml) (revision 427a3b63491fb2f3206a785705ac247af49e1360)
+++ lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml (.../tiles-defs.xml) (revision 6852794f79069c9b70ee194f74677323d0bf14b7)
@@ -25,23 +25,15 @@
-