Author: jonesde
Date: Mon Oct 29 22:58:06 2007 New Revision: 589968 URL: http://svn.apache.org/viewvc?rev=589968&view=rev Log: Reformatting change only Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenAction.java Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenAction.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenAction.java?rev=589968&r1=589967&r2=589968&view=diff ============================================================================== --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenAction.java (original) +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenAction.java Mon Oct 29 22:58:06 2007 @@ -192,33 +192,33 @@ } if (this.toScope != null && this.toScope.equals("user")) { - String originalName = this.field.getOriginalName(); - List currentWidgetTrail = (List)context.get("_WIDGETTRAIL_"); - String newKey = ""; - if (currentWidgetTrail != null) { - newKey = StringUtil.join(currentWidgetTrail, "|"); - } - if (UtilValidate.isNotEmpty(newKey)) { - newKey += "|"; - } - newKey += originalName; - HttpSession session = (HttpSession)context.get("session"); - session.setAttribute(newKey, newValue); - if (Debug.verboseOn()) Debug.logVerbose("In user setting value for field from [" + this.field.getOriginalName() + "]: " + newValue, module); + String originalName = this.field.getOriginalName(); + List currentWidgetTrail = (List)context.get("_WIDGETTRAIL_"); + String newKey = ""; + if (currentWidgetTrail != null) { + newKey = StringUtil.join(currentWidgetTrail, "|"); + } + if (UtilValidate.isNotEmpty(newKey)) { + newKey += "|"; + } + newKey += originalName; + HttpSession session = (HttpSession)context.get("session"); + session.setAttribute(newKey, newValue); + if (Debug.verboseOn()) Debug.logVerbose("In user setting value for field from [" + this.field.getOriginalName() + "]: " + newValue, module); } else if (this.toScope != null && this.toScope.equals("application")) { - String originalName = this.field.getOriginalName(); - List currentWidgetTrail = (List)context.get("_WIDGETTRAIL_"); - String newKey = ""; - if (currentWidgetTrail != null) { - newKey = StringUtil.join(currentWidgetTrail, "|"); - } - if (UtilValidate.isNotEmpty(newKey)) { - newKey += "|"; - } - newKey += originalName; - ServletContext servletContext = (ServletContext)context.get("application"); - servletContext.setAttribute(newKey, newValue); - if (Debug.verboseOn()) Debug.logVerbose("In application setting value for field from [" + this.field.getOriginalName() + "]: " + newValue, module); + String originalName = this.field.getOriginalName(); + List currentWidgetTrail = (List)context.get("_WIDGETTRAIL_"); + String newKey = ""; + if (currentWidgetTrail != null) { + newKey = StringUtil.join(currentWidgetTrail, "|"); + } + if (UtilValidate.isNotEmpty(newKey)) { + newKey += "|"; + } + newKey += originalName; + ServletContext servletContext = (ServletContext)context.get("application"); + servletContext.setAttribute(newKey, newValue); + if (Debug.verboseOn()) Debug.logVerbose("In application setting value for field from [" + this.field.getOriginalName() + "]: " + newValue, module); } else { // only do this if it is not global, if global ONLY put it in the global context if (!global) { |
Free forum by Nabble | Edit this page |