aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/java/at/gv/egovernment
diff options
context:
space:
mode:
authorBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-03-20 15:04:41 +0100
committerBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-03-20 15:04:41 +0100
commita112ca8f0c8cd4a0620c55e430004b28b9fe1dfb (patch)
treea15a1473a943d809ade26fa99a5583b4a3ae356f /id/ConfigWebTool/src/main/java/at/gv/egovernment
parent2a9896057ee6e42a6a07bcf2ec3eae13c582e290 (diff)
downloadmoa-id-spss-a112ca8f0c8cd4a0620c55e430004b28b9fe1dfb.tar.gz
moa-id-spss-a112ca8f0c8cd4a0620c55e430004b28b9fe1dfb.tar.bz2
moa-id-spss-a112ca8f0c8cd4a0620c55e430004b28b9fe1dfb.zip
correcting the error when defining new stork applicaiton
Diffstat (limited to 'id/ConfigWebTool/src/main/java/at/gv/egovernment')
-rw-r--r--id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java
index 4297492e8..637500c1e 100644
--- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java
+++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java
@@ -176,11 +176,18 @@ public class OAGeneralConfigValidation {
if (storkservice) {
check = form.getStorkSPTargetCountry();
- if (check.length() < 1) {
+ if ((check==null)||(check.length() < 1)) {
log.warn("Stork target country is not known");
- errors.add(LanguageHelper.getErrorString(""));
+ errors.add(LanguageHelper.getErrorString("validation.general.stork.sptarget"));
}
+ if (check.length() > 10) {
+ log.warn("Incorrect size of Stork target country, too many characters");
+ errors.add(LanguageHelper.getErrorString("validation.general.stork.sptargetsize"));
+ }
+
+
+
} else if (businessservice) {
//check identification type