From df6a1f22d79f90e0cbdd6bd7463cd3d0c2ed1e42 Mon Sep 17 00:00:00 2001 From: clemenso Date: Fri, 16 Jul 2010 11:44:24 +0000 Subject: enforceRecommendedPinLength param not included by default git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@783 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../main/java/at/gv/egiz/bku/online/applet/BKUApplet.java | 15 +++++++++------ BKUOnline/src/main/webapp/applet.jsp | 3 +-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java index b7b72b5d..2876c56e 100644 --- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java +++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java @@ -165,8 +165,8 @@ public class BKUApplet extends JApplet { if (Boolean.parseBoolean(getParameter(ENFORCE_RECOMMENDED_PIN_LENGTH))) { SignatureCardFactory.ENFORCE_RECOMMENDED_PIN_LENGTH = true; - log.debug("Enforce recommended pin length = {}.", SignatureCardFactory.ENFORCE_RECOMMENDED_PIN_LENGTH); } + log.debug("Enforce recommended pin length = {}.", SignatureCardFactory.ENFORCE_RECOMMENDED_PIN_LENGTH); BKUGUIFacade.Style guiStyle; String guiStyleParam = getParameter(GUI_STYLE); @@ -219,17 +219,20 @@ public class BKUApplet extends JApplet { } } + BKUGUIFacade gui = null; + URLFontLoader fontProvider = null; + try { - URLFontLoader fontProvider = new URLFontLoader(getCodeBase()); + fontProvider = new URLFontLoader(getCodeBase()); fontProvider.loadInBackground(); - BKUGUIFacade gui = createGUI(contentPanel, getLocale(), guiStyle, - backgroundImgURL, fontProvider, helpListener, switchFocusListener); - - worker = createBKUWorker(this, gui); + } catch (MalformedURLException ex) { log.error("Failed to load font provider URL.", ex); System.err.println("invalid font provider URL " + ex.getMessage()); } + gui = createGUI(contentPanel, getLocale(), guiStyle, + backgroundImgURL, fontProvider, helpListener, switchFocusListener); + worker = createBKUWorker(this, gui); } @Override diff --git a/BKUOnline/src/main/webapp/applet.jsp b/BKUOnline/src/main/webapp/applet.jsp index 625f1f6b..5782c6af 100644 --- a/BKUOnline/src/main/webapp/applet.jsp +++ b/BKUOnline/src/main/webapp/applet.jsp @@ -213,8 +213,7 @@ HelpURL : '', SessionID : '', RedirectURL : '', - RedirectTarget: '_parent', - EnforceRecommendedPINLength: 'true' + RedirectTarget: '_parent' }; deployJava.runApplet(attributes, parameters, ''); } -- cgit v1.2.3