]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
More trace messages added
authorRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 12:44:41 +0000 (14:44 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 12:44:41 +0000 (14:44 +0200)
src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java

index 1e9ba56152039f1b901965ac99ca540d31687a12..ae0c8bee1948ab463a29fc739cf531a9323e55f5 100644 (file)
@@ -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;
        }
 
 }