Author: michiel Date: 2010-03-18 12:42:50 +0100 (Thu, 18 Mar 2010) New Revision: 41503
Modified: mmbase/trunk/applications/vpro-wizards/src/main/java/org/mmbase/applications/vprowizards/spring/GlobalError.java Log: in case of unknown key, also include the given properties in the fall back message Modified: mmbase/trunk/applications/vpro-wizards/src/main/java/org/mmbase/applications/vprowizards/spring/GlobalError.java =================================================================== --- mmbase/trunk/applications/vpro-wizards/src/main/java/org/mmbase/applications/vprowizards/spring/GlobalError.java 2010-03-18 11:41:56 UTC (rev 41502) +++ mmbase/trunk/applications/vpro-wizards/src/main/java/org/mmbase/applications/vprowizards/spring/GlobalError.java 2010-03-18 11:42:50 UTC (rev 41503) @@ -9,8 +9,7 @@ */ package org.mmbase.applications.vprowizards.spring; -import java.util.Locale; -import java.util.ResourceBundle; +import java.util.*; import org.mmbase.util.logging.Logger; import org.mmbase.util.logging.Logging; @@ -72,11 +71,11 @@ message = bundle.getString(messageKey); if (message == null || "".equals(message)) { log.warn("no message declared in bundle for key '" + messageKey + "'"); - return messageKey; + return messageKey + " " + Arrays.asList(properties); } } catch (java.util.MissingResourceException mre) { log.warn(mre); - return messageKey; + return messageKey + " " + Arrays.asList(properties); } int count = 0; if (properties != null) { _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs