I need to validate the user input from 2 TextBoxes first on client Side and later on server side. I createt a class called FieldVerifier in the shared package.
I have 2 Methods to validate IBAN and BIC with iban4j:
public static boolean isValidIban(String iban) {
try {
IbanUtil.validate(iban, IbanFormat.Default);
} catch (Exception exc) {
return false;
}
return true;
}
public static boolean isValidBic(String bic) {
try {
BicUtil.validate(bic);
} catch (Exception exc) {
return false;
}
return true;
}
But if I try to start the application I get following error:
Line 91: No source code is available for type org.iban4j.IbanUtil; did you forget to inherit a required module?
Line 101: No source code is available for type org.iban4j.BicUtil; did you forget to inherit a required module?
Line 91: No source code is available for type org.iban4j.IbanFormat; did you forget to inherit a required module?
What do I need to do to build this library to use it on client side?