if (request.getParameter("editSubmit") == null) {
Mapping.begin();
// initialisation du formulaire
Group u = Group.getInstance(id);
GroupForm f = (GroupForm) form;
f.setId(u.getId());
f.setUsers(u.getUsersIds());
request.setAttribute("metaData", ((GroupImpl) u).getMetaData());
Mapping.commit();
return new ActionForward( mapping.getInput() );
}
// effectu les modifications
Mapping.begin();
GroupForm f = (GroupForm) form;
Group u = Group.getInstance(id);
String[] g = f.getUsers();
u.resetUsers();
if (g != null) {
for (int i = 0; i < g.length; i++) {
u.addUser(User.getInstance(g[i]));
}