tim-connector: Pass component to WrongValueException in connectors configuration

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
This commit is contained in:
Manuel Rego Casasnovas 2013-02-14 11:11:01 +01:00
parent 0d921ce747
commit b9022bc6a4

View file

@ -1130,7 +1130,7 @@ public class ConfigurationController extends GenericForwardComposer {
public void validate(Component comp, Object value) {
if (name.equals("Activated")) {
if (!value.equals("Y") && !value.equals("N")) {
throw new WrongValueException(
throw new WrongValueException(comp,
_("Only Y/N allowed"));
}
} else if (name.equals("Server")
@ -1141,7 +1141,7 @@ public class ConfigurationController extends GenericForwardComposer {
} else if (name.equals("NrDaysTimesheetToTim")
|| name.equals("NrDaysRosterFromTim")) {
if (!isNumeric((String) value)) {
throw new WrongValueException(
throw new WrongValueException(comp,
_("Only digits allowed"));
}
}