Edit D:\app\Administrator\product\11.2.0\dbhome_1\j2ee\OC4J_EM\applications\em\em\sdk\homeTemplate.jspf
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="homeuix" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="homeoem" %> <%-- To use the page, the component needs to follow a few simple steps: 1. write a home page jsp like that below. This is basically an include of the generic home page, plus building a tree for the top right plugin 2. add a view model for this home page to the controller, the view model should extend oracle.sysman.emSDK.tgt.home.HomePageHandler. The HomePageHandler provides the databindings for the generic home page. The extended home view model should also add databindings for the top right plugin if needed. 3. add code to query target-specific data from the repository by implementing public void prepareTargetData(PageInfo pageInfo, OracleConnection connection) 4. implement data binding methods for any target specific data, e.g. in home.jsp <... textBinding="myAttr" /> in home.java public String getMyAttr() { return m_myAttr; } 5. specify the sub tabs to use in the page by overridding getSubTabs public SubTabs getSubTabs(PageInfo pageInfo) { SubTabs subTabs = new SubTabs(); subTabs.addHomeTab(pageInfo); // required! subTabs.addSubTab(tabName, tabDest); return subTabs; } 6. add any additional metrics to the metric list by overriding getGeneralMetrics public GeneralMetrics getGeneralMetrics(PageInfo pageInfo) { GeneralMetrics metrics = new GeneralMetrics(); metrics.addGerneralMetrics(metricLabel, metricValue, metricDest); return metrics; } 7. add any related links by overriding getRelatedLinks 8. add any related targets by overridding getRelatedTargets 9: when adding oracle home as metric key in the metricslist, use the new api in GeneralMetrics which takes in a boolean flag. Also use the PatchAdvisories api to determine if patch adv exists for that OH. This will help in displaying the warning patch adv img icon next to OH sample home page template: ----------------------------------- <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %> <homeuix:buildTree nodeID="homePlugin"> <homeuix:flowLayout> <homeuix:text textBinding="image@viewModel@servletRequest" /> </homeuix:flowLayout> </homeuix:buildTree> <%@include file="/sdk/homeTemplate.jsp" %> ----------------------------------- Note: this is a macro include so the user doesn't have to ref this tree. --%> <jsp:include page="/sdk/topTabBarInclude.jsp" /> <jsp:include page="/sdk/bottomTabBarInclude.jsp" /> <jsp:include page="/sdk/alertsInclude.jsp" /> <uix:buildTree scope="request" nodeID="AlertsTables"> <homeuix:tableLayout width="100%" renderedBinding="showAlertsSection@homePageMainTargetAlerts@servletRequest"> <homeuix:rowLayout vAlign="top"> <homeuix:cellFormat width="100%"> <homeuix:dataScope currentDataBinding="homePageMainTargetAlerts@servletRequest"> <homeuix:ref refID="AlertsTable" /> </homeuix:dataScope> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> <homeuix:tableLayout width="100%" renderedBinding="showAlertsSection@homePageRelatedAlerts@servletRequest"> <homeuix:rowLayout vAlign="top"> <homeuix:cellFormat width="100%"> <homeuix:dataScope currentDataBinding="homePageRelatedAlerts@servletRequest"> <homeuix:ref refID="AlertsTable" /> </homeuix:dataScope> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> </uix:buildTree> <%@include file="/sdk/homeInclude.jspf" %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de