context.get("menuStringRenderer") is called twice in 
/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java method 
renderWidgetString.
----------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: OFBIZ-3028
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3028
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: Release Branch 9.04, SVN trunk
            Reporter: Zhang Weixue


menuStringRenderer = (MenuStringRenderer) context.get("menuStringRenderer"), 
this line of code appears twice in below code segment. Why?

        public void renderWidgetString(Appendable writer, Map<String, Object> 
context, ScreenStringRenderer screenStringRenderer) throws IOException {
            // try finding the menuStringRenderer by name in the context in 
case one was prepared and put there
            MenuStringRenderer menuStringRenderer = (MenuStringRenderer) 
context.get("menuStringRenderer");
            // if there was no menuStringRenderer put in place, now try finding 
the request/response in the context and creating a new one
            if (menuStringRenderer == null) {
                // try finding the menuStringRenderer by name in the context in
                // case one was prepared and put there
                menuStringRenderer = (MenuStringRenderer) 
context.get("menuStringRenderer");
                // if there was no menuStringRenderer put in place, now try
                // finding the request/response in the context and creating a
                // new one
                if (menuStringRenderer == null) {
 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to