"; + public static final String RENDER_MONITORING_EDITACTIVITY ="renderMonitoringEditActivity"; public static final String SUBMIT_OFFLINE_FILE ="submitOfflineFile"; public static final String SUBMIT_ONLINE_FILE ="submitOnlineFile"; public static final String LIST_UPLOADED_OFFLINE_FILENAMES ="listUploadedOfflineFileNames"; public static final String LIST_UPLOADED_ONLINE_FILENAMES ="listUploadedOnlineFileNames"; public static final String LIST_OFFLINEFILES_METADATA ="listOfflineFilesMetadata"; public static final String LIST_ONLINEFILES_METADATA ="listOnlineFilesMetadata"; + public static final String ATTACHMENT_LIST ="attachmentList"; + public static final String DELETED_ATTACHMENT_LIST ="deletedAttachmentList"; public static final String COUNT_SESSION_COMPLETE ="countSessionComplete"; public static final String COUNT_ALL_USERS ="countAllUsers"; @@ -310,4 +313,5 @@ public static final String USER_EXCEPTION_FILENAME_EMPTY ="userExceptionFilenameEmpty"; public static final String USER_EXCEPTION_WEIGHT_MUST_EQUAL100 ="userExceptionWeightMustEqual100"; public static final String USER_EXCEPTION_SINGLE_OPTION ="userExceptionSingleOption"; + public static final String USER_EXCEPTION_OPTIONS_DUPLICATE ="userExceptionOptionsDuplicate"; } Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/Attic/VoteUtils.java,v diff -u -r1.2 -r1.3 --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java 11 Apr 2006 09:09:16 -0000 1.2 +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java 13 Apr 2006 14:36:38 -0000 1.3 @@ -512,30 +512,6 @@ } - /** - * sets/resets the define later flag of the content - * setDefineLater(HttpServletRequest request, boolean value) - * - * @param request - * @param value - */ - public static void setDefineLater(HttpServletRequest request, boolean value) - { - IVoteService mcService =VoteUtils.getToolService(request); - Long toolContentId=(Long)request.getSession().getAttribute(TOOL_CONTENT_ID); - logger.debug("toolContentId:" + toolContentId); - logger.debug("value:" + value); - - VoteContent mcContent=mcService.retrieveVote(toolContentId); - logger.debug("mcContent:" + mcContent); - if (mcContent != null) - { - mcContent.setDefineLater(value); - logger.debug("defineLater has been set to true"); - mcService.saveVoteContent(mcContent); - } - } - public static String getDestination(String sourceVoteStarter) { @@ -557,8 +533,25 @@ return LOAD_MONITORING_CONTENT_EDITACTIVITY; } } - + public static void setDefineLater(HttpServletRequest request, boolean value) + { + IVoteService voteService = (IVoteService)request.getSession().getAttribute(TOOL_SERVICE); + logger.debug("voteService:" + voteService); + + Long toolContentId=(Long)request.getSession().getAttribute(TOOL_CONTENT_ID); + logger.debug("toolContentId:" + toolContentId); + + VoteContent voteContent=voteService.retrieveVote(toolContentId); + logger.debug("voteContent:" + voteContent); + if (voteContent != null) + { + voteContent.setDefineLater(value); + logger.debug("defineLater has been set to true"); + voteService.updateVote(voteContent); + } + } + /** * the only attributes kept are TOOL_SESSION and TOOL_CONTENT_ID and CURRENT_MONITORED_TOOL_SESSION Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/voteApplicationContext.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/voteApplicationContext.xml,v diff -u -r1.1 -r1.2 --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/voteApplicationContext.xml 7 Apr 2006 18:00:36 -0000 1.1 +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/voteApplicationContext.xml 13 Apr 2006 14:36:38 -0000 1.2 @@ -19,7 +19,6 @@