From b835b341ff7f8a45762ea9babf3c920e6f46f12e Mon Sep 17 00:00:00 2001 From: Andrew Zeneski Date: Tue, 23 Jan 2007 18:55:36 +0000 Subject: [PATCH] added view to show loaded components git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499098 13f79535-47bb-0310-9956-ffa450edef68 --- .../config/WebtoolsUiLabels.properties | 1 + .../webapp/webtools/WEB-INF/controller.xml | 8 +++ .../webtools/component/viewComponents.ftl | 52 +++++++++++++++++++ framework/webtools/webapp/webtools/main.ftl | 1 + framework/webtools/widget/MiscScreens.xml | 32 ++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 framework/webtools/webapp/webtools/component/viewComponents.ftl create mode 100644 framework/webtools/widget/MiscScreens.xml diff --git a/framework/webtools/config/WebtoolsUiLabels.properties b/framework/webtools/config/WebtoolsUiLabels.properties index f3dda30ba9..42409b1916 100644 --- a/framework/webtools/config/WebtoolsUiLabels.properties +++ b/framework/webtools/config/WebtoolsUiLabels.properties @@ -285,6 +285,7 @@ WebtoolsUseSoftRef=Use Soft Ref ? WebtoolsUseTransaction=Use transaction WebtoolsVerboseLogLevel=Verbose WebtoolsVerboseLogLevelTooltip=The Verbose Level designates fine-grained informational events that are most useful to debug an application. +WebtoolsViewComponents=View Components WebtoolsViewData=view data WebtoolsViewLog=View Log WebtoolsViewRelations=View Relations diff --git a/framework/webtools/webapp/webtools/WEB-INF/controller.xml b/framework/webtools/webapp/webtools/WEB-INF/controller.xml index ff8c0c5aaf..949a531a88 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/controller.xml +++ b/framework/webtools/webapp/webtools/WEB-INF/controller.xml @@ -374,6 +374,12 @@ under the License. + + + + + + @@ -547,5 +553,7 @@ under the License. + + diff --git a/framework/webtools/webapp/webtools/component/viewComponents.ftl b/framework/webtools/webapp/webtools/component/viewComponents.ftl new file mode 100644 index 0000000000..a655c588bb --- /dev/null +++ b/framework/webtools/webapp/webtools/component/viewComponents.ftl @@ -0,0 +1,52 @@ +<#-- +Copyright 2001-2006 The Apache Software Foundation + +Licensed under the Apache License, Version 2.0 (the "License"); you may not +use this file except in compliance with the License. You may obtain a copy of +the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations +under the License. +--> + +<#assign components = Static["org.ofbiz.base.component.ComponentConfig"].getAllComponents()?if_exists/> +
Loaded Components:
+<#if (components?has_content)> + + + + + + + + <#list components as component> + + + + + <#assign webinfos = component.getWebappInfos()?if_exists/> + <#if (webinfos?has_content)> + + <#else> + + + +
Name
Path
Enabled
WebApps (Name, Mount, Path)
${component.getComponentName()?if_exists}
${component.getRootLocation()?if_exists}
${component.enabled()?string?if_exists}
+ + <#list webinfos as webinfo> + + + + + + +
${webinfo.getName()?if_exists}
${webinfo.getContextRoot()?if_exists}
${webinfo.getLocation()?if_exists}
+
 
+<#else> +
No components loaded.
+ \ No newline at end of file diff --git a/framework/webtools/webapp/webtools/main.ftl b/framework/webtools/webapp/webtools/main.ftl index 011e84065b..121884c836 100644 --- a/framework/webtools/webapp/webtools/main.ftl +++ b/framework/webtools/webapp/webtools/main.ftl @@ -45,6 +45,7 @@ under the License. <#if security.hasPermission("ENTITY_MAINT", session)>
  • ${uiLabelMap.WebtoolsEntityEngineTools}
    diff --git a/framework/webtools/widget/MiscScreens.xml b/framework/webtools/widget/MiscScreens.xml new file mode 100644 index 0000000000..bdab65f232 --- /dev/null +++ b/framework/webtools/widget/MiscScreens.xml @@ -0,0 +1,32 @@ + + + + + +
    + + + + + + + +
    +
    + +