Jacques,
I suggested removing the default-value, not the entire set element. Did you test this change with the various themes? -Adrian [hidden email] wrote: > Author: jleroux > Date: Thu Sep 3 16:43:08 2009 > New Revision: 811020 > > URL: http://svn.apache.org/viewvc?rev=811020&view=rev > Log: > Fix https://issues.apache.org/jira/browse/OFBIZ-2885 as suggested by Adrian - OFBIZ-2885 > > Modified: > ofbiz/trunk/framework/common/widget/CommonScreens.xml > > Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml > URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=811020&r1=811019&r2=811020&view=diff > ============================================================================== > --- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original) > +++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Thu Sep 3 16:43:08 2009 > @@ -129,11 +129,6 @@ > <field-map field-name="themeResources" from-field="layoutSettings"/> > </service> > <set field="layoutSettings" from-field="themeResources" default-value="${layoutSettings}" global="true"/> > - <set field="headerTemplateLocation" from-field="layoutSettings.VT_HDR_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/header.ftl"/> > - <set field="footerTemplateLocation" from-field="layoutSettings.VT_FTR_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/footer.ftl"/> > - <set field="appbarTemplateLocation" from-field="layoutSettings.VT_NAV_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/appbar.ftl"/> > - <set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/messages.ftl"/> > - > <property-map resource="CommonHelpUrls" map-name="helpUrlsMap" global="true"/> > </actions> > <widgets> > @@ -209,7 +204,7 @@ > <field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/> > </service> > <set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/> > - > + > <property-map resource="general" map-name="generalProperties" global="true"/> > <set field="defaultVisualThemeId" from-field="generalProperties.defaultVisualThemeId" default-value="SMOOTH_FEATHER"/> > <set field="visualThemeId" from-field="userPreferences.VISUAL_THEME" default-value="${defaultVisualThemeId}" global="true"/> > > > |
After this commit I am getting below error on console on going partymgr
home page: I also did ant run-install with fresh DB. 2009-09-03 23:20:48,617 (http-0.0.0.0-8080-1) [ ModelScreen.java:398:ERROR] Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty. Rolling back transaction. 2009-09-03 23:20:48,620 (http-0.0.0.0-8080-1) [ TransactionUtil.java:322:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty ---- stack trace --------------------------------------------------------------- java.lang.Exception: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:322) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:269) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:401) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:678) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:114) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:215) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:265) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- 2009-09-03 23:20:48,635 (http-0.0.0.0-8080-1) [ TransactionUtil.java:230:ERROR] ---- exception report ---------------------------------------------------------- Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception Exception: javax.transaction.RollbackException Message: Unable to commit: transaction marked for rollback ---- stack trace --------------------------------------------------------------- javax.transaction.RollbackException: Unable to commit: transaction marked for rollback org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:271) org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:245) org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:209) org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:195) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:424) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:114) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:215) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:265) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- 2009-09-03 23:20:48,636 (http-0.0.0.0-8080-1) [ ModelScreen.java:426:ERROR] ---- exception report ---------------------------------------------------------- Could not commit transaction: org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is emptyjava.lang.IllegalArgumentException: Template location is empty (Template location is empty) Exception: org.ofbiz.entity.transaction.GenericTransactionException Message: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is emptyjava.lang.IllegalArgumentException: Template location is empty (Template location is empty) ---- cause --------------------------------------------------------------------- Exception: java.lang.IllegalArgumentException Message: Template location is empty ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: Template location is empty org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:129) org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1020) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:678) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:114) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:215) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:265) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- 2009-09-03 23:20:48,637 (http-0.0.0.0-8080-1) [ ControlServlet.java:218:ERROR] ---- exception report ---------------------------------------------------------- Error in request handler: Exception: org.ofbiz.widget.screen.ScreenRenderException Message: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty (Template location is empty) ---- cause --------------------------------------------------------------------- Exception: java.lang.IllegalArgumentException Message: Template location is empty ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: Template location is empty org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:129) org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1020) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:678) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:114) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:215) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:265) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- 2009-09-03 23:20:48,637 (http-0.0.0.0-8080-1) [ ControlServlet.java:232:ERROR] An error occurred, going to the errorPage: /error/error.jsp 2009-09-03 23:20:49,823 (http-0.0.0.0-8080-1) [ UtilProperties.java:870:INFO ] ResourceBundle WebappEntityLabels (en_US) created in 0.016s with 5 properties 2009-09-03 23:20:50,251 (http-0.0.0.0-8080-1) [ ControlServlet.java:313:INFO ] [[[main] Request Done- total:4.831,since last([main] Request Be...):4.831]] 2009-09-03 23:20:50,421 (http-0.0.0.0-8443-1) [ ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] 2009-09-03 23:20:50,452 (http-0.0.0.0-8443-1) [ RequestHandler.java:716:INFO ] Rendering View [login], sessionId=D299EDB194EC9CC8840254BDB17CCC2F.jvm1 2009-09-03 23:20:50,677 (http-0.0.0.0-8443-1) [ PrimaryKeyFinder.java:142:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:PartyNameView][partyId,null()] 2009-09-03 23:20:50,735 (http-0.0.0.0-8443-1) [ ModelScreen.java:398:ERROR] Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty. Rolling back transaction. 2009-09-03 23:20:50,736 (http-0.0.0.0-8443-1) [ TransactionUtil.java:322:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty ---- stack trace --------------------------------------------------------------- java.lang.Exception: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:322) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:269) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:401) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:678) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:114) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:215) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:265) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- 2009-09-03 23:20:50,738 (http-0.0.0.0-8443-1) [ TransactionUtil.java:230:ERROR] ---- exception report ---------------------------------------------------------- Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception Exception: javax.transaction.RollbackException Message: Unable to commit: transaction marked for rollback ---- stack trace --------------------------------------------------------------- javax.transaction.RollbackException: Unable to commit: transaction marked for rollback org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:271) org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:245) org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:209) org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:195) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:424) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:114) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:215) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:265) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- 2009-09-03 23:20:50,739 (http-0.0.0.0-8443-1) [ ModelScreen.java:426:ERROR] ---- exception report ---------------------------------------------------------- Could not commit transaction: org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is emptyjava.lang.IllegalArgumentException: Template location is empty (Template location is empty) Exception: org.ofbiz.entity.transaction.GenericTransactionException Message: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is emptyjava.lang.IllegalArgumentException: Template location is empty (Template location is empty) ---- cause --------------------------------------------------------------------- Exception: java.lang.IllegalArgumentException Message: Template location is empty ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: Template location is empty org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:129) org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1020) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:678) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:114) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:215) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:265) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- 2009-09-03 23:20:50,739 (http-0.0.0.0-8443-1) [ ControlServlet.java:218:ERROR] ---- exception report ---------------------------------------------------------- Error in request handler: Exception: org.ofbiz.widget.screen.ScreenRenderException Message: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty (Template location is empty) ---- cause --------------------------------------------------------------------- Exception: java.lang.IllegalArgumentException Message: Template location is empty ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: Template location is empty org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:129) org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1020) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:582) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:678) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:248) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:114) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:215) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:265) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- 2009-09-03 23:20:50,739 (http-0.0.0.0-8443-1) [ ControlServlet.java:232:ERROR] An error occurred, going to the errorPage: /error/err [hidden email] wrote: > Author: jleroux > Date: Thu Sep 3 16:43:08 2009 > New Revision: 811020 > > URL: http://svn.apache.org/viewvc?rev=811020&view=rev > Log: > Fix https://issues.apache.org/jira/browse/OFBIZ-2885 as suggested by Adrian - OFBIZ-2885 > > Modified: > ofbiz/trunk/framework/common/widget/CommonScreens.xml > > Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml > URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=811020&r1=811019&r2=811020&view=diff > ============================================================================== > --- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original) > +++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Thu Sep 3 16:43:08 2009 > @@ -129,11 +129,6 @@ > <field-map field-name="themeResources" from-field="layoutSettings"/> > </service> > <set field="layoutSettings" from-field="themeResources" default-value="${layoutSettings}" global="true"/> > - <set field="headerTemplateLocation" from-field="layoutSettings.VT_HDR_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/header.ftl"/> > - <set field="footerTemplateLocation" from-field="layoutSettings.VT_FTR_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/footer.ftl"/> > - <set field="appbarTemplateLocation" from-field="layoutSettings.VT_NAV_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/appbar.ftl"/> > - <set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/messages.ftl"/> > - > <property-map resource="CommonHelpUrls" map-name="helpUrlsMap" global="true"/> > </actions> > <widgets> > @@ -209,7 +204,7 @@ > <field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/> > </service> > <set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/> > - > + > <property-map resource="general" map-name="generalProperties" global="true"/> > <set field="defaultVisualThemeId" from-field="generalProperties.defaultVisualThemeId" default-value="SMOOTH_FEATHER"/> > <set field="visualThemeId" from-field="userPreferences.VISUAL_THEME" default-value="${defaultVisualThemeId}" global="true"/> > > > smime.p7s (4K) Download Attachment |
In reply to this post by Adrian Crum
Fixed in rev. 811077
Jacopo On Sep 3, 2009, at 6:57 PM, Adrian Crum wrote: > Jacques, > > I suggested removing the default-value, not the entire set element. > Did you test this change with the various themes? > > -Adrian > > [hidden email] wrote: >> Author: jleroux >> Date: Thu Sep 3 16:43:08 2009 >> New Revision: 811020 >> URL: http://svn.apache.org/viewvc?rev=811020&view=rev >> Log: >> Fix https://issues.apache.org/jira/browse/OFBIZ-2885 as suggested >> by Adrian - OFBIZ-2885 >> Modified: >> ofbiz/trunk/framework/common/widget/CommonScreens.xml >> Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml >> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=811020&r1=811019&r2=811020&view=diff >> = >> = >> = >> = >> = >> = >> = >> = >> = >> ===================================================================== >> --- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original) >> +++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Thu Sep >> 3 16:43:08 2009 >> @@ -129,11 +129,6 @@ >> <field-map field-name="themeResources" from- >> field="layoutSettings"/> >> </service> >> <set field="layoutSettings" from- >> field="themeResources" default-value="${layoutSettings}" >> global="true"/> >> - <set field="headerTemplateLocation" from- >> field="layoutSettings.VT_HDR_TMPLT_LOC[0]" default- >> value="component://common/webcommon/includes/header.ftl"/> >> - <set field="footerTemplateLocation" from- >> field="layoutSettings.VT_FTR_TMPLT_LOC[0]" default- >> value="component://common/webcommon/includes/footer.ftl"/> >> - <set field="appbarTemplateLocation" from- >> field="layoutSettings.VT_NAV_TMPLT_LOC[0]" default- >> value="component://common/webcommon/includes/appbar.ftl"/> >> - <set field="messagesTemplateLocation" from- >> field="layoutSettings.VT_MSG_TMPLT_LOC[0]" default- >> value="component://common/webcommon/includes/messages.ftl"/> >> - >> <property-map resource="CommonHelpUrls" map- >> name="helpUrlsMap" global="true"/> >> </actions> >> <widgets> >> @@ -209,7 +204,7 @@ >> <field-map field-name="userPrefGroupTypeId" >> value="GLOBAL_PREFERENCES"/> >> </service> >> <set field="userPreferences" from- >> field="prefResult.userPrefMap" global="true"/> >> - + >> <property-map resource="general" map- >> name="generalProperties" global="true"/> >> <set field="defaultVisualThemeId" from- >> field="generalProperties.defaultVisualThemeId" default- >> value="SMOOTH_FEATHER"/> >> <set field="visualThemeId" from- >> field="userPreferences.VISUAL_THEME" default-value="$ >> {defaultVisualThemeId}" global="true"/> |
Administrator
|
Thanks Jacopo,
I was just willing to do it. Sorry guys, I did it too quickly and had some trouble in the same time and then was not able to get it back. I thought my external disk (where I have Postgres and backup) was dead when it was just the power supply, pfff... Jacques From: "Jacopo Cappellato" <[hidden email]> > Fixed in rev. 811077 > > Jacopo > > On Sep 3, 2009, at 6:57 PM, Adrian Crum wrote: > >> Jacques, >> >> I suggested removing the default-value, not the entire set element. Did you test this change with the various themes? >> >> -Adrian >> >> [hidden email] wrote: >>> Author: jleroux >>> Date: Thu Sep 3 16:43:08 2009 >>> New Revision: 811020 >>> URL: http://svn.apache.org/viewvc?rev=811020&view=rev >>> Log: >>> Fix https://issues.apache.org/jira/browse/OFBIZ-2885 as suggested by Adrian - OFBIZ-2885 >>> Modified: >>> ofbiz/trunk/framework/common/widget/CommonScreens.xml >>> Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml >>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=811020&r1=811019&r2=811020&view=diff >>> = = = = = = = = = ===================================================================== >>> --- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original) >>> +++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Thu Sep 3 16:43:08 2009 >>> @@ -129,11 +129,6 @@ >>> <field-map field-name="themeResources" from- field="layoutSettings"/> >>> </service> >>> <set field="layoutSettings" from- field="themeResources" default-value="${layoutSettings}" global="true"/> >>> - <set field="headerTemplateLocation" from- field="layoutSettings.VT_HDR_TMPLT_LOC[0]" default- >>> value="component://common/webcommon/includes/header.ftl"/> >>> - <set field="footerTemplateLocation" from- field="layoutSettings.VT_FTR_TMPLT_LOC[0]" default- >>> value="component://common/webcommon/includes/footer.ftl"/> >>> - <set field="appbarTemplateLocation" from- field="layoutSettings.VT_NAV_TMPLT_LOC[0]" default- >>> value="component://common/webcommon/includes/appbar.ftl"/> >>> - <set field="messagesTemplateLocation" from- field="layoutSettings.VT_MSG_TMPLT_LOC[0]" default- >>> value="component://common/webcommon/includes/messages.ftl"/> >>> - >>> <property-map resource="CommonHelpUrls" map- name="helpUrlsMap" global="true"/> >>> </actions> >>> <widgets> >>> @@ -209,7 +204,7 @@ >>> <field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/> >>> </service> >>> <set field="userPreferences" from- field="prefResult.userPrefMap" global="true"/> >>> - + >>> <property-map resource="general" map- name="generalProperties" global="true"/> >>> <set field="defaultVisualThemeId" from- field="generalProperties.defaultVisualThemeId" default- >>> value="SMOOTH_FEATHER"/> >>> <set field="visualThemeId" from- field="userPreferences.VISUAL_THEME" default-value="$ {defaultVisualThemeId}" >>> global="true"/> > |
In reply to this post by Jacopo Cappellato-4
Thanks Jacopo!
-- Ashish On Fri, Sep 4, 2009 at 12:09 AM, Jacopo Cappellato < [hidden email]> wrote: > Fixed in rev. 811077 > > Jacopo > > > On Sep 3, 2009, at 6:57 PM, Adrian Crum wrote: > > Jacques, >> >> I suggested removing the default-value, not the entire set element. Did >> you test this change with the various themes? >> >> -Adrian >> >> [hidden email] wrote: >> >>> Author: jleroux >>> Date: Thu Sep 3 16:43:08 2009 >>> New Revision: 811020 >>> URL: http://svn.apache.org/viewvc?rev=811020&view=rev >>> Log: >>> Fix https://issues.apache.org/jira/browse/OFBIZ-2885 as suggested by >>> Adrian - OFBIZ-2885 >>> Modified: >>> ofbiz/trunk/framework/common/widget/CommonScreens.xml >>> Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml >>> URL: >>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=811020&r1=811019&r2=811020&view=diff >>> >>> ============================================================================== >>> --- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original) >>> +++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Thu Sep 3 >>> 16:43:08 2009 >>> @@ -129,11 +129,6 @@ >>> <field-map field-name="themeResources" >>> from-field="layoutSettings"/> >>> </service> >>> <set field="layoutSettings" from-field="themeResources" >>> default-value="${layoutSettings}" global="true"/> >>> - <set field="headerTemplateLocation" >>> from-field="layoutSettings.VT_HDR_TMPLT_LOC[0]" >>> default-value="component://common/webcommon/includes/header.ftl"/> >>> - <set field="footerTemplateLocation" >>> from-field="layoutSettings.VT_FTR_TMPLT_LOC[0]" >>> default-value="component://common/webcommon/includes/footer.ftl"/> >>> - <set field="appbarTemplateLocation" >>> from-field="layoutSettings.VT_NAV_TMPLT_LOC[0]" >>> default-value="component://common/webcommon/includes/appbar.ftl"/> >>> - <set field="messagesTemplateLocation" >>> from-field="layoutSettings.VT_MSG_TMPLT_LOC[0]" >>> default-value="component://common/webcommon/includes/messages.ftl"/> >>> - >>> <property-map resource="CommonHelpUrls" >>> map-name="helpUrlsMap" global="true"/> >>> </actions> >>> <widgets> >>> @@ -209,7 +204,7 @@ >>> <field-map field-name="userPrefGroupTypeId" >>> value="GLOBAL_PREFERENCES"/> >>> </service> >>> <set field="userPreferences" >>> from-field="prefResult.userPrefMap" global="true"/> >>> - + >>> <property-map resource="general" >>> map-name="generalProperties" global="true"/> >>> <set field="defaultVisualThemeId" >>> from-field="generalProperties.defaultVisualThemeId" >>> default-value="SMOOTH_FEATHER"/> >>> <set field="visualThemeId" >>> from-field="userPreferences.VISUAL_THEME" >>> default-value="${defaultVisualThemeId}" global="true"/> >>> >> > |
Free forum by Nabble | Edit this page |