2627282930313233343536
public Object getAsObject(FacesContext context, UIComponent component, String value) { if (value == null || value.length() == 0){ return null; } Role role = roleService.find(Long.valueOf(value)); if (role == null) { throw new ConverterException(new FacesMessage("Unknown Role ID: " + value)); }
8081828384858687
getUserHDService().remove(currentUser); } public void addNewUser() { currentUser = new UserHD(); currentUser.setRole(new Role()); listAllUsers.add(0, currentUser); }