Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\eussubcomponents_mappings.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 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%"> <% if(iEUSComponentType != 1) { %> <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> <% } else if(iEUSComponentType == 1) { %> <uix:formValue name="<%=sSelectionModeDropBoxName%>" value="<%=sSelectionModeDropBoxSelVal%>"/> <% } %> </uix:cellFormat> <uix:cellFormat hAlign="right" width="50%"> <uix:submitButton name="event" value="<%=EUSConstants.EUS_CREATE_SUB_COMPONENT%>" text="<%=eusBundle.getString(\"EUS_CREATE_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_CREATE_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(); iColCount = ((iEUSComponentType==1) ? iColCount-2 : iColCount-1); for(int i=0;i<iColCount;i++) { String sDisplayNameKey="SUBCOMP_"+selectedSubComponentType.getType()+"_COMP_"+iEUSComponentType+"_COL"+i; String sDisplayName = eusBundle.getString(sDisplayNameKey); if(i==0) { } 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> <% if(iEUSComponentType!=1) { %> <uix:submitButton name="event" value="<%=EUSConstants.EUS_EDIT_SUB_COMPONENT%>" text="<%=eusBundle.getString(\"EUS_EDIT_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_EDIT_TEXT\")%>"/> <% } %> <uix:submitButton name="event" value="<%=EUSConstants.EUS_REMOVE_SUB_COMPONENT%>" text="<%=eusBundle.getString(\"EUS_DELETE_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_DELETE_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_DELETE_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_DELETE_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