Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\eussubcomponents_domainadmin.jsp
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix"%> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem"%> <%@ page import="oracle.sysman.emSDK.util.jdk.NLSUtil"%> <%@ page import="oracle.cabo.ui.data.BundleDataObject"%> <%@ page import="oracle.sysman.emSDK.util.jdk.NLSUtil"%> <%@ page import="oracle.sysman.db.rsc.sec.EUSMsg"%> <%@ page import="oracle.cabo.ui.data.BundleDataObject"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSConstants"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSSubComponentsDataSourceConstants"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSComponent"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSComponentType"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSSubComponentType"%> <%@ page import="java.util.ResourceBundle"%> <%@ page import="java.util.Map"%> <%@ page import="java.util.HashMap"%> <%@ page import="oracle.sysman.emo.util.UIXDataSource"%> <% EUSSubComponentType selectedSubComponentType=(EUSSubComponentType)request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE); EUSComponentType componentType = ((EUSComponent)request.getAttribute(EUSConstants.EUS_COMPONENT_CACHED_OBJECT)).getType(); int iEUSComponentType=componentType.getType(); ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); String sFormDestinationURL=(String)request.getAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT); String sUrl=sFormDestinationURL+"&event="+EUSConstants.EUS_GET_ADDITIONAL_SUB_COMPONENTS ; String sFinalUrl=request.getContextPath()+sUrl+"&SUB_COMPONENT_TYPE="+selectedSubComponentType+"&_em.coIFR=true"; //String sButtonAction="window.open('"+sFinalUrl+"','','menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=650, height=450')"; String sButtonAction="openWindow(window, '"+sFinalUrl+"', 'lovWindow',{width:700, height:600},true, 'dialog','')"; String sDSSummaryText=eusBundle.getString("DS_SUMMARY_TXT_FOR_SUBCOMP_"+selectedSubComponentType.getType()+"_IN_COMP_"+iEUSComponentType); String sSelectionModeDropBoxName="selectionMode_"+ iEUSComponentType +"_"+selectedSubComponentType.getType(); String sSelectionModeDropBoxSelVal="0"; if(request.getAttribute(sSelectionModeDropBoxName) != null) sSelectionModeDropBoxSelVal=(String)request.getAttribute(sSelectionModeDropBoxName); String sSelModeDestinationURLPrefix = request.getContextPath()+ EUSConstants.EUS_BASE_URL_TO_COMPONENT_PAGE_SUFFIX + iEUSComponentType + EUSConstants.EUS_BASE_URL_TO_COMPONENT_PAGE_PREFIX ; String sSelModeDestinationURLSuffix = "&event="+EUSConstants.EUS_CONFIGURE_COMPONENT_PAGE; String sSelModeDestinationURL=sSelModeDestinationURLPrefix+selectedSubComponentType.getType()+sSelModeDestinationURLSuffix; String sSelectionModeChangeJS="submitMainForm('"+sSelModeDestinationURL+"')"; %> <uix:tableLayout width="100%" cellPadding="1" cellSpacing="1"> <uix:rowLayout> <uix:cellFormat hAlign="left" width="50%"> <uix:messageChoice promptBinding="SELECTION_MODE@dbMsgs" selectedValue="<%=sSelectionModeDropBoxSelVal%>" name="<%=sSelectionModeDropBoxName%>" onChange="<%=sSelectionModeChangeJS%>"> <uix:contents> <uix:option textBinding="SINGLE@dbMsgs" value="0"/> <uix:option textBinding="MULTIPLE@dbMsgs" value="1"/> </uix:contents> </uix:messageChoice> </uix:cellFormat> <uix:cellFormat hAlign="right" width="50%"> <uix:button text="<%=eusBundle.getString(\"EUS_ADD_TEXT\")%>" onClick="<%=sButtonAction%>" shortDesc="<%=eusBundle.getString(\"EUS_ADD_TEXT\")%>" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat columnSpan="3"> <uix:dataScope currentDataBinding="EUS_SUB_COMPONENTS_DATASOURCE@servletRequest"> <uix:table name="eussubcomponents" alternateTextBinding="EUS_NO_ITEMS_FOUND_TEXT@eusMsgs" width="100%" tableDataBinding="rowData" minValue="1" formSubmitted="true" valueBinding="<%= UIXDataSource.S_START_INDEX_ATTR %>" blockSizeBinding="<%= UIXDataSource.S_BLOCK_SIZE_ATTR %>" maxValueBinding="<%= UIXDataSource.S_NUM_ROWS_ATTR %>" summary="<%=sDSSummaryText%>" shortDesc="<%=sDSSummaryText%>"> <uix:tableFormat tableBanding="rowBanding"/> <% int iColCount = ((Integer)((Map)EUSSubComponentsDataSourceConstants.NUM_COLS_EUS_SUBCOMPONENT.get(EUSSubComponentsDataSourceConstants.NUM_COLS_EUS_SUBCOMPS_IN_COMP_STR+componentType.getType())).get(EUSSubComponentsDataSourceConstants.NUM_COLS_EUS_SUB_COMP_STR+selectedSubComponentType.getType())).intValue(); for(int i=0;i<iColCount;i++) { String sDisplayNameKey="SUBCOMP_"+selectedSubComponentType.getType()+"_COMP_"+iEUSComponentType+"_COL"+i; String sDisplayName = eusBundle.getString(sDisplayNameKey); if(i==(iColCount-1)) { %> <uix:column> <uix:columnHeader> <uix:text text = "<%=sDisplayName%>"/> </uix:columnHeader> <uix:contents> <uix:checkBox shortDesc="<%=sDisplayName%>" name="IS_OWNER" checkedBinding="<%=sDisplayNameKey%>" /> </uix:contents> <uix:columnFormat columnDataFormat="iconButtonFormat"/> </uix:column> <% } else { if(i==0) { %> <uix:column> <uix:columnHeader> <uix:sortableHeader text="<%=sDisplayName%>" sortable="true" shortDesc="<%=sDisplayName%>"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:link destinationBinding="VIEW_SUB_COMPONENT_URL" textBinding="<%=sDisplayNameKey%>" shortDescBinding="<%=sDisplayNameKey%>" /> </uix:column> <% } else { %> <uix:column> <uix:columnHeader> <uix:sortableHeader text="<%=sDisplayName%>" sortable="true" shortDesc="<%=sDisplayName%>" /> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:styledText textBinding="<%=sDisplayNameKey%>" /> </uix:column> <% } } } %> <uix:tableSelection> <uix:switcher defaultCase="0" childName="<%=sSelectionModeDropBoxSelVal%>"> <uix:case name="0"> <uix:singleSelection selectedIndex="0" textBinding="EUS_SELECT_TEXT@eusMsgs" shortDescBinding="EUS_SELECT_TEXT@eusMsgs"> </uix:singleSelection> </uix:case> <uix:case name="1"> <uix:multipleSelection shortDescBinding="EUS_SELECT_TEXT@eusMsgs"> </uix:multipleSelection> </uix:case> </uix:switcher> </uix:tableSelection> <uix:tableActions> <% UIXDataSource dataSource=(UIXDataSource)request.getAttribute("EUS_SUB_COMPONENTS_DATASOURCE"); if(dataSource != null && dataSource.getRowCount() > 0) { %> <uix:switcher defaultCase="0" childName="<%=sSelectionModeDropBoxSelVal%>"> <uix:case name="0"> <uix:pageButtonBar> <uix:contents> <uix:submitButton name="event" value="<%=EUSConstants.EUS_VIEW_SUB_COMPONENT%>" text="<%=eusBundle.getString(\"EUS_VIEW_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_VIEW_TEXT\")%>" /> <uix:submitButton name="event" value="<%=EUSConstants.EUS_REMOVE_SUB_COMPONENT%>" text="<%=eusBundle.getString(\"EUS_REMOVE_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_REMOVE_TEXT\")%>"/> </uix:contents> </uix:pageButtonBar> </uix:case> <uix:case name="1"> <uix:pageButtonBar> <uix:contents> <uix:submitButton name="event" value="<%=EUSConstants.EUS_REMOVE_SUB_COMPONENT%>" text="<%=eusBundle.getString(\"EUS_REMOVE_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_REMOVE_TEXT\")%>"/> </uix:contents> </uix:pageButtonBar> </uix:case> </uix:switcher> <% } %> </uix:tableActions> </uix:table> </uix:dataScope> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de