Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\eussubcomponents_dbglobalroles.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); String sComponentType = (String)request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE); String sFormDestinationURL=(String)request.getAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT); ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); int iEUSComponentType=Integer.parseInt(sComponentType); String sSubComponentEvent=(String)request.getAttribute("SUB_COMPONENT_EVENT"); request.setAttribute("SUB_COMPONENT_EVENT",sSubComponentEvent); String sFinalUrl=request.getContextPath()+sFormDestinationURL+"&event="+sSubComponentEvent+"&subevent=fetchadditionalsearchpage&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 sRemoveUrl=request.getContextPath()+sFormDestinationURL+"&event="+sSubComponentEvent+"&subevent=remove&SUB_COMPONENT_TYPE="+selectedSubComponentType; String sRemoveJSFunction="submitMainForm('"+sRemoveUrl+"')"; String sViewUrl=request.getContextPath()+sFormDestinationURL+"&event="+sSubComponentEvent+"&subevent=view&SUB_COMPONENT_TYPE="+selectedSubComponentType; String sViewJSFunction="submitMainForm('"+sViewUrl+"')"; String sDSSummaryText=eusBundle.getString("DS_SUMMARY_TXT_FOR_SUBCOMP_"+selectedSubComponentType.getType()+"_IN_COMP_"+iEUSComponentType); %> <uix:tableLayout width="100%" cellPadding="1" cellSpacing="1"> <uix:rowLayout> <uix:cellFormat hAlign="left" width="50%"> <uix:spacer height="0" width="50" /> </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_BUILDING_BLOCKS_DATASOURCE@servletRequest"> <uix:table name="eusbuildingblocks" 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+iEUSComponentType)).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); %> <uix:column> <uix:columnHeader> <uix:sortableHeader text="<%=sDisplayName%>" shortDesc="<%=sDisplayName%>" sortable="true"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:styledText textBinding="<%=sDisplayNameKey%>" /> </uix:column> <% } %> <uix:tableSelection> <uix:multipleSelection textBinding="EUS_SELECT_TEXT@eusMsgs" shortDescBinding="EUS_SELECT_TEXT@eusMsgs"> </uix:multipleSelection> </uix:tableSelection> <uix:tableActions> <% UIXDataSource dataSource=(UIXDataSource)request.getAttribute("EUS_BUILDING_BLOCKS_DATASOURCE"); if(dataSource != null && dataSource.getRowCount() > 0) { %> <uix:pageButtonBar> <uix:contents> <uix:button onClick="<%=sRemoveJSFunction%>" text="<%=eusBundle.getString(\"EUS_REMOVE_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_REMOVE_TEXT\")%>" /> </uix:contents> </uix:pageButtonBar> <% } %> </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