Index: lams_tool_chat/.classpath
===================================================================
diff -u -r0e70aea7c73efe426b7e314e57e915b52a9820c1 -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/.classpath (.../.classpath) (revision 0e70aea7c73efe426b7e314e57e915b52a9820c1)
+++ lams_tool_chat/.classpath (.../.classpath) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -10,5 +10,6 @@
+
Index: lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java
===================================================================
diff -u -rd9fc170eb230ed4487cec79193c2cfdc48f7436e -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java (.../AuthoringAction.java) (revision d9fc170eb230ed4487cec79193c2cfdc48f7436e)
+++ lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java (.../AuthoringAction.java) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -40,6 +40,7 @@
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
+import org.lamsfoundation.lams.authoring.web.AuthoringConstants;
import org.lamsfoundation.lams.contentrepository.client.IToolContentHandler;
import org.lamsfoundation.lams.tool.chat.beans.AuthoringSessionBean;
import org.lamsfoundation.lams.tool.chat.model.Chat;
@@ -189,6 +190,8 @@
// update form and return to page.
resetAuthSession(authSession, content);
authForm.setAuthSession(authSession);
+
+ request.setAttribute(AuthoringConstants.LAMS_AUTHORING_SUCCESS_FLAG,Boolean.TRUE);
return mapping.findForward("success");
}
Index: lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/ClearSessionAction.java
===================================================================
diff -u
--- lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/ClearSessionAction.java (revision 0)
+++ lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/ClearSessionAction.java (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -0,0 +1,51 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+/* $Id$ */
+package org.lamsfoundation.lams.tool.chat.web.actions;
+
+import javax.servlet.http.HttpSession;
+
+import org.lamsfoundation.lams.authoring.web.LamsAuthoringFinishAction;
+import org.lamsfoundation.lams.tool.ToolAccessMode;
+
+/**
+ * This class give a chance to clear HttpSession when user save/close authoring page.
+ * @author Steve.Ni
+ * ----------------XDoclet Tags--------------------
+ *
+ * @struts:action path="/clearsession" validate="false"
+ *
+ * @version $Revision$
+ */
+public class ClearSessionAction extends LamsAuthoringFinishAction {
+
+ @Override
+ public void clearSession(HttpSession session, ToolAccessMode mode) {
+ if(mode.isAuthor()){
+// session.removeAttribute(QaAction.SUBMIT_SUCCESS);
+ }
+ }
+
+
+}
Index: lams_tool_chat/web/WEB-INF/lams.tld
===================================================================
diff -u -re2fd92838d76eb295d284fa45332fa2809d64cc7 -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/web/WEB-INF/lams.tld (.../lams.tld) (revision e2fd92838d76eb295d284fa45332fa2809d64cc7)
+++ lams_tool_chat/web/WEB-INF/lams.tld (.../lams.tld) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -2,7 +2,7 @@
1.0
@@ -275,8 +275,12 @@
/WEB-INF/tags/SetEditor.tag
+ AuthoringButton
+ /WEB-INF/tags/AuthoringButton.tag
+
+ headItems/WEB-INF/tags/headItems.tag
-
+
Index: lams_tool_chat/web/WEB-INF/struts/struts-config.xml
===================================================================
diff -u -rb32ded72d955763a9b49e33e2dc2ab195d83564b -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/web/WEB-INF/struts/struts-config.xml (.../struts-config.xml) (revision b32ded72d955763a9b49e33e2dc2ab195d83564b)
+++ lams_tool_chat/web/WEB-INF/struts/struts-config.xml (.../struts-config.xml) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -55,6 +55,13 @@
/>
+
+
+<%@ tag body-content="scriptless" %>
+<%@ taglib uri="tags-core" prefix="c" %>
+<%@ taglib uri="tags-fmt" prefix="fmt" %>
+<%@ taglib uri="tags-html" prefix="html" %>
+
+<%@ attribute name="formID" required="true" rtexprvalue="true" %>
+<%@ attribute name="toolSignature" required="true" rtexprvalue="true" %>
+<%@ attribute name="toolContentID" required="true" rtexprvalue="true" %>
+<%@ attribute name="clearSessionActionUrl" required="true" rtexprvalue="true" %>
+
+<%-- Optional attribute --%>
+<%@ attribute name="accessMode" required="false" rtexprvalue="true" %>
+<%@ attribute name="cancelButtonLabelKey" required="false" rtexprvalue="true" %>
+<%@ attribute name="saveButtonLabelKey" required="false" rtexprvalue="true" %>
+<%@ attribute name="cancelConfirmMsgKey" required="false" rtexprvalue="true" %>
+
+<%-- Default value for message key --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: lams_tool_chat/web/WEB-INF/tags/HTMLEditor.tag
===================================================================
diff -u -r196eee412e9be0d16fec7635a2b7813f16956f31 -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/web/WEB-INF/tags/HTMLEditor.tag (.../HTMLEditor.tag) (revision 196eee412e9be0d16fec7635a2b7813f16956f31)
+++ lams_tool_chat/web/WEB-INF/tags/HTMLEditor.tag (.../HTMLEditor.tag) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -2,11 +2,11 @@
/****************************************************************
* Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
* =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Index: lams_tool_chat/web/WEB-INF/tags/SetEditor.tag
===================================================================
diff -u -r196eee412e9be0d16fec7635a2b7813f16956f31 -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/web/WEB-INF/tags/SetEditor.tag (.../SetEditor.tag) (revision 196eee412e9be0d16fec7635a2b7813f16956f31)
+++ lams_tool_chat/web/WEB-INF/tags/SetEditor.tag (.../SetEditor.tag) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -2,11 +2,11 @@
/****************************************************************
* Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
* =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Index: lams_tool_chat/web/WEB-INF/tags/Tab.tag
===================================================================
diff -u -r196eee412e9be0d16fec7635a2b7813f16956f31 -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/web/WEB-INF/tags/Tab.tag (.../Tab.tag) (revision 196eee412e9be0d16fec7635a2b7813f16956f31)
+++ lams_tool_chat/web/WEB-INF/tags/Tab.tag (.../Tab.tag) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -2,11 +2,11 @@
/****************************************************************
* Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
* =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -35,22 +35,32 @@
<%@ attribute name="value" required="false" rtexprvalue="true" %>
<%@ attribute name="key" required="false" rtexprvalue="true" %>
<%@ attribute name="inactive" required="false" rtexprvalue="true" %>
+<%@ attribute name="methodCall" required="false" rtexprvalue="true" %>
+
<%@ taglib uri="tags-core" prefix="c" %>
<%@ taglib uri="tags-bean" prefix="bean" %>
<%@ taglib uri="tags-lams" prefix="lams" %>
-
-
+
-
-
+<% // Usually methodCall is selectTab, but the calling code can override methodCall if desired.
+ // this is handy if the page needs different logic on initialisation and user switching tabs %>
+
+
+
+
+
+
+
+
+
-
+
-
+
@@ -63,7 +73,7 @@
\ No newline at end of file
Index: lams_tool_chat/web/WEB-INF/tags/TabBody.tag
===================================================================
diff -u -r196eee412e9be0d16fec7635a2b7813f16956f31 -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/web/WEB-INF/tags/TabBody.tag (.../TabBody.tag) (revision 196eee412e9be0d16fec7635a2b7813f16956f31)
+++ lams_tool_chat/web/WEB-INF/tags/TabBody.tag (.../TabBody.tag) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -2,11 +2,11 @@
/****************************************************************
* Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
* =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -32,18 +32,18 @@
%>
<%@ tag body-content="scriptless" %>
<%@ attribute name="id" required="true" rtexprvalue="true" %>
-<%@ attribute name="title" required="false" rtexprvalue="true" %>
+<%@ attribute name="tabTitle" required="false" rtexprvalue="true" %>
<%@ attribute name="titleKey" required="false" rtexprvalue="true" %>
<%@ attribute name="page" required="false" rtexprvalue="true" %>
<%@ taglib uri="tags-core" prefix="c" %>
<%@ taglib uri="tags-bean" prefix="bean" %>
-
-
+
+
-
+
Index: lams_tool_chat/web/WEB-INF/tags/Tabs.tag
===================================================================
diff -u -r196eee412e9be0d16fec7635a2b7813f16956f31 -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/web/WEB-INF/tags/Tabs.tag (.../Tabs.tag) (revision 196eee412e9be0d16fec7635a2b7813f16956f31)
+++ lams_tool_chat/web/WEB-INF/tags/Tabs.tag (.../Tabs.tag) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -2,11 +2,11 @@
/****************************************************************
* Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
* =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Index: lams_tool_chat/web/pages/authoring/authoring.jsp
===================================================================
diff -u -rb32ded72d955763a9b49e33e2dc2ab195d83564b -re1582051fac0c62608ec525ed2de8b666699ac86
--- lams_tool_chat/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision b32ded72d955763a9b49e33e2dc2ab195d83564b)
+++ lams_tool_chat/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision e1582051fac0c62608ec525ed2de8b666699ac86)
@@ -7,10 +7,10 @@