Ajax pour l'ajout des utilisateurs
Policy failures: Code warning - failed on resource AddConferenceController.java. Reason: HashSet is a raw type. References to generic type HashSet<E> should be parameterized, line 108 - failed on resource AddConferenceController.java. Reason: Iterator is a raw type. References to generic type Iterator<E> should be parameterized, line 61 - failed on resource AddConferenceController.java. Reason: Map is a raw type. References to generic type Map<K,V> should be parameterized, line 166 - failed on resource addConference4.jsp. Reason: No end tag (</fieldset>)., line 148 - failed on resource AddConferenceController.java. Reason: Set is a raw type. References to generic type Set<E> should be parameterized, line 108 ... and more. Override reason: hehe
This commit is contained in:
@@ -43,8 +43,7 @@ function fillTable() {
|
||||
}
|
||||
|
||||
function editClicked(eleid) {
|
||||
// we were an id of the form "edit{id}", eg "edit42". We lookup the "42"
|
||||
alert(eleid);
|
||||
// we were an id of the form "edit{id}", eg "edit42". We lookup the "42"
|
||||
var person = peopleCache[eleid.substring(4)];
|
||||
dwr.util.setValues(person);
|
||||
}
|
||||
@@ -75,6 +74,15 @@ function clearPerson() {
|
||||
dwr.util.setValues({ id:-1, label:null, min:null, max:null });
|
||||
}
|
||||
|
||||
function submitIfNotEnter(theForm){
|
||||
if(theForm.elements["submit"] || theForm.elements["submit"]){
|
||||
return true;
|
||||
} else {
|
||||
writePerson();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
@@ -83,9 +91,9 @@ function clearPerson() {
|
||||
|
||||
<h2 align="center"><fmt:message key="conference.titleMenu" /></h2>
|
||||
|
||||
<form:form commandName="formConference" name="monForm">
|
||||
<form:form commandName="formConference" name="monForm" onsubmit="return submitIfNotEnter(this)">
|
||||
|
||||
<fieldset style="border-width: 1px;"><legend>Criteria</legend>
|
||||
<fieldset><legend>Criteria</legend>
|
||||
<table class="plain">
|
||||
<tr>
|
||||
<td>Label:</td>
|
||||
@@ -101,8 +109,8 @@ function clearPerson() {
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right"><small>(ID=<span id="id">-1</span>)</small>
|
||||
<a href="<c:url value="Javascript:writePerson();"/>" >Save</a>
|
||||
<a href="<c:url value="Javascript:clearPerson();"/>" >Clear</a>
|
||||
<a href="#" onclick="writePerson()">Save</a>
|
||||
<a href="#" onclick="clearPerson()">Clear</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -123,9 +131,9 @@ function clearPerson() {
|
||||
<td><span id="tableCriterion">Criterion</span></td>
|
||||
<td><span id="tableCriterionMin">Min</span></td>
|
||||
<td><span id="tableCriterionMax">Max</span></td>
|
||||
<td>
|
||||
<input id="edit" type="button" value="Edit" onclick="editClicked(this.id)" />
|
||||
<input id="delete" type="button" value="Delete" onclick="deleteClicked(this.id)" />
|
||||
<td>
|
||||
<a id="edit" href="#" onclick="editClicked(this.id)" >Edit</a>
|
||||
<a id="delete" href="#" onclick="deleteClicked(this.id)" >Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -133,11 +141,17 @@ function clearPerson() {
|
||||
|
||||
<br />
|
||||
|
||||
<input type="submit" align="middle" name="_target2" value="Back">
|
||||
<input type="submit" align="middle" name="_target4" value="Next" />
|
||||
<input type="submit" align="middle" name="_target2" value="Back" onclick="this.form.elements['submit']=true">
|
||||
<input type="submit" align="middle" name="_target4" value="Next" onclick="this.form.elements['submit']=true" />
|
||||
|
||||
|
||||
</form:form>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
init();
|
||||
</script>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<a href="<c:url value="main.htm"/>">Home</a>
|
||||
|
||||
Reference in New Issue
Block a user