protected boolean validateUpdateParams() { boolean allowed = true; ITicketManager ticketManager = this.getTicketManager(); Integer interventionType = this.getInterventionType(); if (null != interventionType && 0 != interventionType.intValue() && null == ticketManager.getInterventionType(interventionType)) { this.addFieldError("interventionType", this.getText("Errors.interventionType.notValid")); allowed = false; } Integer priority = this.getPriority(); if (null != priority && 0 != priority.intValue() && null == ticketManager.getPriorities().get(priority)) { this.addFieldError("priority", this.getText("Errors.priority.notValid")); allowed = false; } return allowed; }