String head = "";
String foot = "";
head = "<form id='roleList'><table><caption class='titre'>Roles disponibles</caption><thead><TR align='center'><TH>Description</TH><TH>Action</TH></TR></thead><tbody>";
ArrayList<Role> roles = Dao.allRoles();
Role r = null;
if (roles.size() > 0) {
for (int i = 0; i < roles.size(); i++) {
r = roles.get(i);
body = body
+ "<tr><td>"
+ r.getRoleDescription()
+ "</td><td><input type='button'value='Supprimer' class='slick-black' id=roleDel"
+ i + " onclick = 'deleteRole(" + r.getRoleId()
+ ")'></td></tr>";
foot = "</tbody></table></form>";
}
}