Edit D:\app\Administrator\product\11.2.0\dbhome_1\j2ee\OC4J_EM\applications\em\em\sdk\pageTemplate.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 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="pagePlugin"> <homeuix:flowLayout> <homeuix:text textBinding="image@viewModel@servletRequest" /> </homeuix:flowLayout> </homeuix:buildTree> <%@include file="/sdk/pageTemplate.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" /> <homeuix:renderingContext id="renderingContext"><homeoem:setURLEncoder id="renderingContext"/> <homeuix:bundle name="sdkMsg" class="oracle.sysman.emSDK.eml.SDKUIMsg"/> <homeuix:dataScope currentDataBinding="viewModel@servletRequest" > <homeuix:document> <%@ include file="/enablePPR.jspf" %> <%@ include file="/oemTitle.jspf" %> <homeuix:body> <homeuix:pageLayout> <%@ include file="/oemGlobal.jspf" %> <% if(request.getAttribute("preHeaderPlugin") != null) { %> <homeuix:ref refID="preHeaderPlugin" /> <% } %> <homeuix:header textBinding="targetDisplayName" > <homeuix:tableLayout width="100%" renderedBinding="showPageLevelTimestamp" > <homeuix:rowLayout hAlign="right"> <homeuix:cellFormat> <homeuix:rowLayout> <homeuix:styledText styleClass="OraTipText" textBinding="PAGE_REFRESHED_TIME@sdkMsg"/> <homeuix:spacer width="4"/> <homeuix:styledText styleClass="OraTipLabel" textBinding="lastUpdateTime"/> <homeuix:spacer width="4"/> <homeuix:image sourceBinding="refreshImage" destinationBinding="refreshLink" shortDescBinding="REFRESH@sdkMsg"/> <homeuix:button renderedBinding="showEditGroupDef" textBinding="EDIT_GROUP_DEFINITION@sdkMsg" destinationBinding="editGroupLink" /> </homeuix:rowLayout> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> <homeuix:contents> <homeuix:ref refID="topTabBar" /> <homeuix:tableLayout width="100%" > <homeuix:rowLayout vAlign="top"> <homeuix:cellFormat width="100%"> <homeuix:ref refID="pagePlugin" /> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> <homeuix:spacer height="10" /> <homeuix:ref refID="bottomTabBar" /> </homeuix:contents> </homeuix:header> </homeuix:pageLayout> </homeuix:body> </homeuix:document> </homeuix:dataScope> </homeuix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de