Hi to all,
while I'm doing some test on web site content I have found the following error on renderSubContentEnd: Macro renderSubContentEnd has no such argument: editContainerStyle The problematic instruction: ---------- ==> macro renderSubContentEnd [on line 56, column 1 in component://widget/templates/htmlScreenMacroLibrary.ftl] in user-directive renderSubContentEnd [on line 1, column 1 in Wed Jun 17 09:50:11 CEST 2009] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateException: Macro renderSubContentEnd has no such argument: editContainerStyle at freemarker.core.Environment.visit(Environment.java:564) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.Environment.include(Environment.java:1482) at org.ofbiz.widget.screen.MacroScreenRenderer.executeMacro(MacroScreenRenderer.java:103) at org.ofbiz.widget.screen.MacroScreenRenderer.executeMacro(MacroScreenRenderer.java:112) at org.ofbiz.widget.screen.MacroScreenRenderer.renderSubContentEnd(MacroScreenRenderer.java:611) at org.ofbiz.widget.screen.ModelScreenWidget$SubContent.renderWidgetString(ModelScreenWidget.java:1157) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:227) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840) at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:104) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.Environment.process(Environment.java:189) at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205) at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:201) at org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:245) at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:107) at org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:976) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:676) at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:167) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:706) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:292) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:292) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:227) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:646) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:227) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) at org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:111) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:784) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:533) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) at org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) I have tried to change the file htmlScreenMacroLibrary.ftl as this patch: Index: framework/widget/templates/htmlScreenMacroLibrary.ftl =================================================================== --- framework/widget/templates/htmlScreenMacroLibrary.ftl (revision 784919) +++ framework/widget/templates/htmlScreenMacroLibrary.ftl (working copy) @@ -53,7 +53,7 @@ </#macro> <#macro renderSubContentBegin editContainerStyle editRequest enableEditValue><#if editRequest?exists && enableEditValue == "true"><div class="${editContainerStyle}"></#if></#macro> <#macro renderSubContentBody></#macro> -<#macro renderSubContentEnd> +<#macro renderSubContentEnd urlString editMode editContainerStyle editRequest enableEditValue> <#if editRequest?exists && enableEditValue == "true"> <#if urlString?exists><a href="${urlString}">${editMode}</a><#rt/></#if> <#if editContainerStyle?exists></div><#rt/></#if> Let me know if I have to open a JIRA issue. Thanks in advance Marco |
Marco,
thank you, I have committed your fix with rev. 785509 Jacopo On Jun 17, 2009, at 10:02 AM, [hidden email] wrote: > Hi to all, > > while I'm doing some test on web site content I have found the > following error on renderSubContentEnd: > > Macro renderSubContentEnd has no such argument: editContainerStyle > The problematic instruction: > ---------- > ==> macro renderSubContentEnd [on line 56, column 1 in component:// > widget/templates/htmlScreenMacroLibrary.ftl] > in user-directive renderSubContentEnd [on line 1, column 1 in Wed > Jun 17 09:50:11 CEST 2009] > ---------- > > Java backtrace for programmers: > ---------- > freemarker.template.TemplateException: Macro renderSubContentEnd has > no such argument: editContainerStyle > at freemarker.core.Environment.visit(Environment.java:564) > at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) > at freemarker.core.Environment.visit(Environment.java:209) > at freemarker.core.Environment.include(Environment.java:1482) > at > org > .ofbiz > .widget > .screen.MacroScreenRenderer.executeMacro(MacroScreenRenderer.java:103) > at > org > .ofbiz > .widget > .screen.MacroScreenRenderer.executeMacro(MacroScreenRenderer.java:112) > at > org > .ofbiz > .widget > .screen > .MacroScreenRenderer.renderSubContentEnd(MacroScreenRenderer.java:611) > at org.ofbiz.widget.screen.ModelScreenWidget > $SubContent.renderWidgetString(ModelScreenWidget.java:1157) > at > org > .ofbiz > .widget > .screen > .ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > at org.ofbiz.widget.screen.ModelScreenWidget > $Section.renderWidgetString(ModelScreenWidget.java:227) > at > org > .ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java: > 393) > at > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130) > at > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun > .reflect > .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun > .reflect > .DelegatingMethodAccessorImpl > .invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java: > 840) > at > freemarker > .ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:104) > at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) > at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) > at freemarker.core.Expression.getStringValue(Expression.java:93) > at freemarker.core.DollarVariable.accept(DollarVariable.java:76) > at freemarker.core.Environment.visit(Environment.java:209) > at freemarker.core.MixedContent.accept(MixedContent.java:92) > at freemarker.core.Environment.visit(Environment.java:209) > at freemarker.core.Environment.process(Environment.java:189) > at > org > .ofbiz > .base > .util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java: > 205) > at > org > .ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java: > 201) > at org.ofbiz.widget.screen.HtmlWidget > $HtmlTemplate.renderWidgetString(HtmlWidget.java:245) > at > org > .ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java: > 107) > at org.ofbiz.widget.screen.ModelScreenWidget > $PlatformSpecific.renderWidgetString(ModelScreenWidget.java:976) > at > org > .ofbiz > .widget > .screen > .ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > at org.ofbiz.widget.screen.ModelScreenWidget > $DecoratorSection.renderWidgetString(ModelScreenWidget.java:676) > at org.ofbiz.widget.screen.ModelScreenWidget > $SectionsRenderer.render(ModelScreenWidget.java:167) > at org.ofbiz.widget.screen.ModelScreenWidget > $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java: > 706) > at > org > .ofbiz > .widget > .screen > .ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > at org.ofbiz.widget.screen.ModelScreenWidget > $Container.renderWidgetString(ModelScreenWidget.java:292) > at > org > .ofbiz > .widget > .screen > .ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > at org.ofbiz.widget.screen.ModelScreenWidget > $Container.renderWidgetString(ModelScreenWidget.java:292) > at > org > .ofbiz > .widget > .screen > .ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > at org.ofbiz.widget.screen.ModelScreenWidget > $Section.renderWidgetString(ModelScreenWidget.java:227) > at > org > .ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java: > 393) > at org.ofbiz.widget.screen.ModelScreenWidget > $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:646) > at > org > .ofbiz > .widget > .screen > .ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > at org.ofbiz.widget.screen.ModelScreenWidget > $Section.renderWidgetString(ModelScreenWidget.java:227) > at > org > .ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java: > 393) > at > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130) > at > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) > at > org > .ofbiz > .widget > .screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:111) > at > org > .ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java: > 784) > at > org > .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java: > 533) > at > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at > org > .apache > .catalina > .core > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > 290) > at > org > .apache > .catalina > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java: > 264) > at > org > .apache > .catalina > .core > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > 235) > at > org > .apache > .catalina > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org > .apache > .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: > 233) > at > org > .apache > .catalina.core.StandardContextValve.invoke(StandardContextValve.java: > 175) > at > org > .apache > .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > org > .apache > .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org > .apache > .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: > 109) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: > 568) > at > org > .ofbiz > .catalina > .container > .CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44) > at > org > .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: > 286) > at > org > .apache.coyote.http11.Http11Processor.process(Http11Processor.java: > 844) > at org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.process(Http11Protocol.java:583) > at org.apache.tomcat.util.net.JIoEndpoint > $Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:619) > > > I have tried to change the file htmlScreenMacroLibrary.ftl as this > patch: > > Index: framework/widget/templates/htmlScreenMacroLibrary.ftl > =================================================================== > --- framework/widget/templates/htmlScreenMacroLibrary.ftl (revision > 784919) > +++ framework/widget/templates/htmlScreenMacroLibrary.ftl (working > copy) > @@ -53,7 +53,7 @@ > </#macro> > <#macro renderSubContentBegin editContainerStyle editRequest > enableEditValue><#if editRequest?exists && enableEditValue == > "true"><div class="${editContainerStyle}"></#if></#macro> > <#macro renderSubContentBody></#macro> > -<#macro renderSubContentEnd> > +<#macro renderSubContentEnd urlString editMode editContainerStyle > editRequest enableEditValue> > <#if editRequest?exists && enableEditValue == "true"> > <#if urlString?exists><a href="${urlString}">${editMode}</a><#rt/></ > #if> > <#if editContainerStyle?exists></div><#rt/></#if> > > > Let me know if I have to open a JIRA issue. > > Thanks in advance > Marco > > > smime.p7s (3K) Download Attachment |
Free forum by Nabble | Edit this page |