summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java2
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java5
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/binding/BindingProcessor.java7
3 files changed, 13 insertions, 1 deletions
diff --git a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java
index 0d2f847..41e08b8 100644
--- a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java
+++ b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java
@@ -172,7 +172,7 @@ public class MoccaParameterBean {
+ "='{}' is not a valid locale definition.", locale);
}
}
- return null;
+ return bindingProcessor.getLocale();
}
public Integer getInteger(String parameterName) {
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java b/bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java
index 5201e81..904629a 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java
@@ -61,6 +61,11 @@ public abstract class AbstractBindingProcessor implements BindingProcessor {
}
@Override
+ public Locale getLocale() {
+ return locale;
+ }
+
+ @Override
public void init(String id, STAL stal, SLCommandInvoker commandInvoker) {
if (id == null) {
throw new NullPointerException("Id must not be null.");
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/binding/BindingProcessor.java b/bkucommon/src/main/java/at/gv/egiz/bku/binding/BindingProcessor.java
index 148fe29..e8a7a7b 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/binding/BindingProcessor.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/binding/BindingProcessor.java
@@ -53,6 +53,13 @@ public interface BindingProcessor extends Runnable {
* must not be null.
*/
public void setLocale(Locale locale);
+
+ /**
+ * Returns the locale used for user interaction.
+ *
+ * @return the locale used for user interaction
+ */
+ public Locale getLocale();
/**
* Instructs this BindingProcessor to consume the request