Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
763 posts
|
Author: jaz
Date: Tue Jan 23 10:55:36 2007 New Revision: 499098 URL: http://svn.apache.org/viewvc?view=rev&rev=499098 Log: added view to show loaded components Added: ofbiz/trunk/framework/webtools/webapp/webtools/component/ ofbiz/trunk/framework/webtools/webapp/webtools/component/viewComponents.ftl (with props) ofbiz/trunk/framework/webtools/widget/MiscScreens.xml (with props) Modified: ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml ofbiz/trunk/framework/webtools/webapp/webtools/main.ftl Modified: ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties?view=diff&rev=499098&r1=499097&r2=499098 ============================================================================== --- ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties (original) +++ ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties Tue Jan 23 10:55:36 2007 @@ -285,6 +285,7 @@ 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 Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml?view=diff&rev=499098&r1=499097&r2=499098 ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml Tue Jan 23 10:55:36 2007 @@ -374,6 +374,12 @@ <response name="success" type="view" value="EntityPerformanceTest"/> </request-map> + <!-- Misc requests --> + <request-map uri="ViewComponents"> + <security https="true" auth="true"/> + <response name="success" type="view" value="ViewComponents"/> + </request-map> + <!-- EntitySQL requests --> <request-map uri="EntitySQLProcessor"> <security https="true" auth="true"/> @@ -547,5 +553,7 @@ <view-map name="EntityExportAll" page="component://webtools/widget/EntityScreens.xml#EntityExportAll" type="screen"/> <view-map name="EntityImportDir" page="component://webtools/widget/EntityScreens.xml#EntityImportDir" type="screen"/> <view-map name="EntityImport" page="component://webtools/widget/EntityScreens.xml#EntityImport" type="screen"/> + + <view-map name="ViewComponents" page="component://webtools/widget/MiscScreens.xml#ViewComponents" type="screen"/> <!-- end of view mappings --> </site-conf> Added: ofbiz/trunk/framework/webtools/webapp/webtools/component/viewComponents.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/component/viewComponents.ftl?view=auto&rev=499098 ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/component/viewComponents.ftl (added) +++ ofbiz/trunk/framework/webtools/webapp/webtools/component/viewComponents.ftl Tue Jan 23 10:55:36 2007 @@ -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/> +<div class="head3">Loaded Components:</div> +<#if (components?has_content)> + <table cellpadding="2" cellspacing="0" border="1" width="100%"> + <tr> + <td><div class="tableheadtext">Name</div></td> + <td><div class="tableheadtext">Path</div></td> + <td><div class="tableheadtext">Enabled</div></td> + <td colspan="3"><div class="tableheadtext">WebApps (Name, Mount, Path)</div></td> + </tr> + <#list components as component> + <tr> + <td><div class="tabletext">${component.getComponentName()?if_exists}</div></td> + <td><div class="tabletext">${component.getRootLocation()?if_exists}</div></td> + <td><div class="tabletext">${component.enabled()?string?if_exists}</div></td> + <#assign webinfos = component.getWebappInfos()?if_exists/> + <#if (webinfos?has_content)> + <td> + <table cellpadding="2" cellspacing="0" border="0" width="100%"> + <#list webinfos as webinfo> + <tr> + <td><div class="tabletext">${webinfo.getName()?if_exists}</div></td> + <td><div class="tabletext">${webinfo.getContextRoot()?if_exists}</div></td> + <td><div class="tabletext">${webinfo.getLocation()?if_exists}</div></td> + </tr> + </#list> + </table> + </td> + <#else> + <td> </td> + </#if> + </#list> + </table> +<#else> + <div class="tabletext">No components loaded.</div> +</#if> \ No newline at end of file Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/component/viewComponents.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/component/viewComponents.ftl ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/component/viewComponents.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/webtools/webapp/webtools/main.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/main.ftl?view=diff&rev=499098&r1=499097&r2=499098 ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/main.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/main.ftl Tue Jan 23 10:55:36 2007 @@ -45,6 +45,7 @@ <ul> <li><a href="<@ofbizUrl>/FindUtilCache</@ofbizUrl>" class="linktext">${uiLabelMap.WebtoolsCacheMaintenance}</a> <li><a href="<@ofbizUrl>/LogConfiguration</@ofbizUrl>" class="linktext">${uiLabelMap.WebtoolsAdjustDebuggingLevels}</a> + <li><a href="<@ofbizUrl>/ViewComponents</@ofbizUrl>" class="linktext">${uiLabelMap.WebtoolsViewComponents}</a> </ul> <#if security.hasPermission("ENTITY_MAINT", session)> <li><div class="tabletext">${uiLabelMap.WebtoolsEntityEngineTools}</div> Added: ofbiz/trunk/framework/webtools/widget/MiscScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/widget/MiscScreens.xml?view=auto&rev=499098 ============================================================================== --- ofbiz/trunk/framework/webtools/widget/MiscScreens.xml (added) +++ ofbiz/trunk/framework/webtools/widget/MiscScreens.xml Tue Jan 23 10:55:36 2007 @@ -0,0 +1,32 @@ +<!-- + ~ Copyright 2001-2007 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. + --> + +<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd"> + + <screen name="ViewComponents"> + <section> + <widgets> + <decorator-screen name="CommonWebtoolsDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <platform-specific><html><html-template location="component://webtools/webapp/webtools/component/viewComponents.ftl"/></html></platform-specific> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + +</screens> Propchange: ofbiz/trunk/framework/webtools/widget/MiscScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/widget/MiscScreens.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/framework/webtools/widget/MiscScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml |
Free forum by Nabble | Edit this page |