modif d'evaluation

Policy failures:   
Code warning
- failed on resource EvaluationController.java. Reason: ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized, line 83
- failed on resource EvaluationController.java. Reason: Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<Rating>, line 8
Override reason:
This commit is contained in:
Jialin Wang
2008-01-21 21:14:42 +00:00
parent e7e9a5367e
commit 5a503be012
3 changed files with 27 additions and 45 deletions

View File

@@ -13,6 +13,7 @@
<li><a href="<c:url value="choosePreference.htm"/>"><fmt:message key="preference.title" /></a></li>
<li><a href="<c:url value="dispatchArticle.htm"/>"><fmt:message key="dispatch.title" /></a></li>
<li><a href="<c:url value="addConference.htm"/>"><fmt:message key="conference.titleMenu" /></a></li>
<li><a href="<c:url value="evaluation.htm"/>"><fmt:message key="evaluation.title" /></a></li>
</ul>
</div>

View File

@@ -1,43 +1,32 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<!--
<%@ page session="false" %> spring -> true par defaut
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<head></head>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content">
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
<div id="main_content">
<h2 align="center"><fmt:message key="evaluation.title"/></h2>
<form:form method="post" commandName="evaluationForm">
<table>
<c:forEach items="${simpleRatings}" var="criterion" varStatus="j">
<c:forEach items="${evaluationForm.simpleRatings}" var="criterion" varStatus="j">
<tr>
<td>${criterion.name}</td>
<c:forEach varStatus="i" begin="${criterion.min_rating}" end="${criterion.max_rating}">
<td>${i}</td>
<td><form:radiobutton path="simpleRatings[${j.index}].value" value="${i}" /></td>
</c:forEach>
<td>
<c:forEach var="i" begin="${criterion.min_rating}" end="${criterion.max_rating}" step="1">
<c:out value="${i}"/>
<form:radiobutton path="simpleRatings[${j.index}].value" value="${i}" />
</c:forEach>
</td>
</tr>
</c:forEach>
@@ -53,7 +42,7 @@
</table>
<input type="submit" name="submit" value="<fmt:message key="button.OK"/>"/>
</form:form>
@@ -61,10 +50,8 @@
<a href="<c:url value="main.htm"/>">Home</a>
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>