From 9e16309167867b205f01e389324f68ac831cd822 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 10 Apr 2016 14:44:41 +0200 Subject: [PATCH] More trace messages added --- .../converter/category/PizzaCategoryConverter.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java b/src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java index 1e9ba561..ae0c8bee 100644 --- a/src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java +++ b/src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java @@ -127,6 +127,9 @@ public class PizzaCategoryConverter implements Converter { @Override public String getAsString (final FacesContext context, final UIComponent component, final Object value) { + // Trace message + this.loggerBeanLocal.logTrace(MessageFormat.format("getAsString: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N + // Is the object null? if (null == value) { // Is null @@ -137,7 +140,13 @@ public class PizzaCategoryConverter implements Converter { } // Return category id - return String.valueOf(((Category) value).getCategoryId()); + String str = String.valueOf(((Category) value).getCategoryId()); + + // Trace message + this.loggerBeanLocal.logTrace(MessageFormat.format("getAsString: str={0} - EXIT!", str)); //NOI18N + + // Return it + return str; } } -- 2.39.5