Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\euscreateeditsubcomponent_mappings.jsp
<%@ include file="/sdk/oemTop.jspf" %> <%@ include file="/oemNoscript.jspf" %> <%@ 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.EUSComponent"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSSubComponent"%> <%@ 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.List"%> <%@ page import="java.util.ArrayList"%> <%@ page import="java.util.Map"%> <%@ page import="java.util.Set"%> <%@ page import="java.util.Iterator"%> <%@ page import="oracle.sysman.emo.util.UIXDataSource"%> <%@ page import="oracle.sysman.db.adm.ParameterNames"%> <uix:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <uix:bundle name="dbMsgs" class="oracle.sysman.db.rsc.DBObjectMsg"/> <uix:bundle name="olsMsgs" class="oracle.sysman.db.rsc.sec.OLSOIDMsg"/> <uix:bundle name="eusMsgs" class="oracle.sysman.db.rsc.sec.EUSMsg"/> <% EUSComponent eusComponent=null; String sSubCompPropertyUserLOv=""; String sSubCompPropertySubtreeLOv=""; String sCurrentJSP="/database/security/eus/euscreateeditsubcomponent_mappings"; request.setAttribute("eusBundle", new BundleDataObject(NLSUtil.getBundle(EUSMsg.class.getName(), request))); String dbVersion = (String)request.getAttribute("DBVERSION"); int iSelectedTab = 0; int iEUSComponentType=0; if(request.getAttribute("SELECTED_TAB")!=null) { String sSelected=(String)request.getAttribute("SELECTED_TAB"); iSelectedTab=Integer.parseInt(sSelected); } EUSSubComponentType fromRequestSubComponentType=null; String sFRomRequestSubComponentTYpe="0"; if(request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE) != null) { fromRequestSubComponentType=(EUSSubComponentType) request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE); sFRomRequestSubComponentTYpe=String.valueOf(fromRequestSubComponentType.getType()); } EUSComponentType fromRequestComponentType=null; String sFRomRequestComponentTYpe="0"; if(request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE) != null) { fromRequestComponentType=(EUSComponentType) request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE); sFRomRequestComponentTYpe=String.valueOf(fromRequestComponentType.getType()); iEUSComponentType=Integer.parseInt(sFRomRequestComponentTYpe); } ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); EUSSubComponent eusSubComponent=(EUSSubComponent)request.getAttribute(EUSConstants.EUS_SUB_COMPONENT_CACHED_OBJECT); String sPageTitle= ""; String sEvent=""; if(request.getAttribute("SUB_COMPONENT_EVENT") != null && ((String)request.getAttribute("SUB_COMPONENT_EVENT")).equals(EUSConstants.EUS_CREATE_SUB_COMPONENT)) { sPageTitle = eusBundle.getString("CREATE_SUB_COMPONENT_"+eusSubComponent.getType()+"_PAGE_TITLE"); sEvent=EUSConstants.EUS_CREATE_SUB_COMPONENT; } else { sPageTitle = eusBundle.getString("CONFIGURE_SUB_COMPONENT_"+eusSubComponent.getType()+"_PAGE_TITLE"); sEvent=EUSConstants.EUS_EDIT_SUB_COMPONENT ; } sPageTitle = sPageTitle + request.getAttribute("CONFIGURE_SUB_COMPONENT_PAGE_TITLE"); String sSubComponentName = (String) request.getAttribute("CONFIGURE_SUB_COMPONENT_PAGE_TITLE"); String sFormDestinationURL=(String)request.getAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT)+"&SUB_COMPONENT_TYPE="+sFRomRequestSubComponentTYpe; String sCancelDestinationURL=request.getContextPath()+sFormDestinationURL+ "&event="+sEvent+"&subevent=cancel"; String sCancelJSFunction="cancelMainForm('"+sCancelDestinationURL+"')"; String sUserLOVURL=request.getContextPath()+sFormDestinationURL+"&event="+sEvent+"&subevent=getUsers&_em.coIFR=true"; String sSubtreeLOVURL=request.getContextPath()+sFormDestinationURL+"&event="+sEvent+"&subevent=getUserSearchBases&_em.coIFR=true"; String sFromUserJSFunction="getFromUser('"+sUserLOVURL+"','"+sSubtreeLOVURL+"')"; String sDBUserLOVURL=request.getContextPath()+sFormDestinationURL+"&event="+sEvent+"&subevent=getDBUsers&_em.coIFR=true"; String sDBUserAction="openWindow(window, '"+sDBUserLOVURL+"','lovWindow',{width:700, height:600},true, 'dialog','')"; if(iEUSComponentType==1) sDBUserAction="getFromDBUser('"+sDBUserLOVURL+"')"; String sSubmitDestinationURL=request.getContextPath()+sFormDestinationURL+ "&event="+sEvent+"&subevent=commit"; String sSubmitJSFunction=""; if(iEUSComponentType==1) sSubmitJSFunction="submitMainFormForUser('"+sSubmitDestinationURL+"')"; else sSubmitJSFunction="submitMainFormForDomain('"+sSubmitDestinationURL+"')"; EUSSubComponentType selectedSubComponentType = null; String sCreateEditSubComponentInstructionText=eusBundle.getString("CREATE_EDIT_INS_TEXT_FOR_SUBCOMP_"+eusSubComponent.getType()+"_IN_COMP_"+sFRomRequestComponentTYpe); String isUserLovSelected="true"; String isSubTreeLovSelected="false"; String sUserLov=""; String sSubTreeLov=""; String sDBUserLov = ""; String sDomainUserLov = ""; String sMappingType="ENTRY"; String sSubComponentProperty1Value=""; String sSubComponentProperty3Value=""; String sSubComponentProperty4Value=""; String isDatabaseSelected="true"; String isDomainSelected="false"; String sDomainOrDatabase="Database"; List availableDatabases=(List)request.getAttribute("EUS_AVAILABLE_DATABASES"); List availableDomains = (List)request.getAttribute("EUS_AVAILABLE_DOMAINS"); List availableScope=new ArrayList(); if(request.getAttribute("SUB_COMPONENT_PROPERTIES") != null) { Map mappingProperties= (Map) request.getAttribute("SUB_COMPONENT_PROPERTIES"); int iMappingTypePropertyNumber=((iEUSComponentType==1) ? 6 : 4); sMappingType=(String) mappingProperties.get(new Integer(iMappingTypePropertyNumber)); if(mappingProperties != null && mappingProperties.size() > 0) { Set keys=mappingProperties.keySet(); Iterator iterator=keys.iterator(); while(iterator.hasNext()) { Integer iKey=(Integer)iterator.next(); if(iKey.intValue()==1) { if(sMappingType.equalsIgnoreCase("ENTRY")) { if(request.getAttribute(EUSConstants.SELECTED_USER_GROUP) != null && String.valueOf(request.getAttribute(EUSConstants.SELECTED_USER_GROUP)).equals("")==false) { sUserLov= (String) request.getAttribute(EUSConstants.SELECTED_USER_GROUP); isUserLovSelected = "true"; } else { if(mappingProperties.get(iKey) != null && String.valueOf(mappingProperties.get(iKey)).equals("")==false) { sUserLov= (String) mappingProperties.get(iKey); isUserLovSelected = "true"; } } sSubComponentProperty1Value=sUserLov; } else if(sMappingType.equalsIgnoreCase("SUBTREE")) { if(request.getAttribute(EUSConstants.SELECTED_USER_GROUP) != null && String.valueOf(request.getAttribute(EUSConstants.SELECTED_USER_GROUP)).equals("")==false) { sSubTreeLov = (String) request.getAttribute(EUSConstants.SELECTED_USER_GROUP); isSubTreeLovSelected = "true"; } else { if(mappingProperties.get(iKey) != null && String.valueOf(mappingProperties.get(iKey)).equals("")==false) { sSubTreeLov = (String) mappingProperties.get(iKey); isSubTreeLovSelected = "true"; } } sSubComponentProperty1Value=sSubTreeLov; } else { isUserLovSelected = "true"; } } else if(iKey.intValue()==3) { if(request.getAttribute(EUSConstants.SELECTED_DB_USER) != null && String.valueOf(request.getAttribute(EUSConstants.SELECTED_DB_USER)).equals("")==false) { sDBUserLov = (String) request.getAttribute(EUSConstants.SELECTED_DB_USER); } else { if(mappingProperties.get(iKey) != null && String.valueOf(mappingProperties.get(iKey)).equals("")==false) { sDBUserLov = (String) mappingProperties.get(iKey); } } } else if(iKey.intValue()==7) { if(mappingProperties.get(iKey) != null && String.valueOf(mappingProperties.get(iKey)).equals("")==false) { sDomainOrDatabase=(String) mappingProperties.get(iKey); if(sDomainOrDatabase.equalsIgnoreCase("DOMAIN")) { availableScope=availableDomains; isDatabaseSelected="false"; isDomainSelected="true"; sDomainUserLov=sDBUserLov; sDBUserLov=""; } else if(sDomainOrDatabase.equalsIgnoreCase("DATABASE")) { availableScope=availableDatabases; isDatabaseSelected="true"; isDomainSelected="false"; } } } else if(iEUSComponentType==1 && iKey.intValue()==4) { if(mappingProperties.get(iKey) != null && String.valueOf(mappingProperties.get(iKey)).equals("")==false) { sSubComponentProperty4Value = String.valueOf(mappingProperties.get(iKey)); } } } } } StringBuffer oemTitle = (StringBuffer)request.getAttribute("_emSDK_PageTitle"); oemTitle.append(" - "); oemTitle.append(sPageTitle); String sMovetoDomainOrDBURL=request.getContextPath()+sFormDestinationURL+ "&event="+sEvent+"&subevent=mappingdomainordb"; String sMoveToDomainoDbJS= "mappingdomainordb('"+sMovetoDomainOrDBURL+"','"+isDatabaseSelected+"','"+isDomainSelected+"')"; %> <uix:document> <%@ include file="/oemTitle.jspf" %> <uix:metaContainer> <!-- Set the page title --> <uix:head title="<%=oemTitle%>"/> </uix:metaContainer> <uix:body> <uix:form name="form0" method="POST" destination="<%=sFormDestinationURL%>"> <uix:formValue name="ToBeAddedSubComponentsIndexes"/> <uix:formValue name="<%=EUSConstants.SUB_COMPONENT_TYPE%>" value="<%=sFRomRequestSubComponentTYpe%>" /> <uix:formValue name="<%=EUSConstants.EUS_COMPONENT_TYPE%>" value="<%=sFRomRequestComponentTYpe%>" /> <% if (iEUSComponentType == 1) { eusComponent=(EUSComponent)request.getAttribute(EUSConstants.EUS_COMPONENT_CACHED_OBJECT); sSubCompPropertyUserLOv=eusComponent.getComponentName(); sSubCompPropertySubtreeLOv=sSubCompPropertyUserLOv.substring((sSubCompPropertyUserLOv.indexOf(",")+1),sSubCompPropertyUserLOv.length()); if(sMappingType.equalsIgnoreCase("ENTRY")) { sSubComponentProperty1Value=sSubCompPropertyUserLOv; isUserLovSelected="true"; isSubTreeLovSelected="false"; } else { sSubComponentProperty1Value=sSubCompPropertySubtreeLOv; isSubTreeLovSelected="true"; isUserLovSelected="false"; } %> <uix:formValue name="SUB_COMPONENT_PROPERTY_1" value="<%=sSubComponentProperty1Value%>" /> <uix:formValue name="SUB_COMPONENT_PROPERTY_6"/> <uix:formValue name="SUB_COMPONENT_PROPERTY_7"/> <% } else { %> <uix:formValue name="SUB_COMPONENT_PROPERTY_4" /> <% } %> <uix:formValue name="ToBeAddedUserGroupIndex" value="" /> <uix:formValue name="SUB_COMPONENT_EVENT" value="<%=sEvent%>"/> <uix:formValue name="<%=ParameterNames.PAGE_NAME%>" value="<%=sCurrentJSP%>"/> <uix:pageLayout title="<%=sPageTitle%>"> <%@ include file="/enablePPR.jspf" %> <%@ include file="/oemGlobal.jspf" %> <%@ include file="/database/security/common/entdbseclogout.jspf" %> <oem:messageBox messageType="error" errorTableBinding="errors@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <uix:script text="function submitMainFormForDomain(sSubmitUrl) { var sSelectedLov=''; var sSelectedSchema=''; for(var i=0;i<document.forms[0].elements.length;i++) { var sElemenetName=document.forms[0].elements[i].name; var sCheckBoxName='SUB_COMPONENT_PROPERTY_2'; if(sCheckBoxName==sElemenetName) { if(document.forms[0].elements[i].checked==true) { document.forms[0].SUB_COMPONENT_PROPERTY_4.value=document.forms[0].elements[i].value; } } } document.forms[0].action=sSubmitUrl; document.forms[0].submit(); } function submitMainFormForUser(sSubmitUrl) { var sSelectedLov=''; var sSelectedSchema=''; for(var i=0;i<document.forms[0].elements.length;i++) { var sElemenetName=document.forms[0].elements[i].name; var sCheckBoxName='SUB_COMPONENT_PROPERTY_2'; if(sCheckBoxName==sElemenetName) { if(document.forms[0].elements[i].checked==true) { document.forms[0].SUB_COMPONENT_PROPERTY_6.value=document.forms[0].elements[i].value; } } if(sElemenetName=='SUB_COMPONENT_PROPERTY_5') { if(document.forms[0].elements[i].checked==true) { document.forms[0].SUB_COMPONENT_PROPERTY_7.value=document.forms[0].elements[i].value; } } } document.forms[0].action=sSubmitUrl; document.forms[0].submit(); } function cancelMainForm(sFinalUrl) { document.forms[0].action=sFinalUrl; document.forms[0].submit(); } function getFromUser(sUserLOVURL,sSubtreeLOVURL) { for(var i=0;i<document.forms[0].elements.length;i++) { var sElemenetName=document.forms[0].elements[i].name; var sRadioName='SUB_COMPONENT_PROPERTY_2'; var sRadioValue=''; if(sRadioName==sElemenetName) { if(document.forms[0].elements[i].checked==true) { sRadioValue=document.forms[0].elements[i].value; document.forms[0].SUB_COMPONENT_PROPERTY_4.value=sRadioValue; if(sRadioValue=='ENTRY') { openWindow(window, sUserLOVURL,'lovWindow',{width:700, height:600},true, 'dialog',''); } else { openWindow(window, sSubtreeLOVURL,'lovWindow',{width:700, height:600},true, 'dialog',''); } } } } } function getFromDBUser(sDBUserLOVUrl) { for(var i=0;i<document.forms[0].elements.length;i++) { var sElemenetName=document.forms[0].elements[i].name; var sDatabaseSelectFieldName='SUB_COMPONENT_PROPERTY_4'; var sDatabaseSelectFieldValue=''; if(sDatabaseSelectFieldName==sElemenetName) { sDatabaseSelectFieldValue=document.forms[0].elements[i].value; sDBUserLOVUrl = sDBUserLOVUrl + '&SELECTED_DB_NAME='+sDatabaseSelectFieldValue; } if(sElemenetName=='SUB_COMPONENT_PROPERTY_2') { if(document.forms[0].elements[i].checked) document.forms[0].SUB_COMPONENT_PROPERTY_6.value = document.forms[0].elements[i].value ; } if(sElemenetName=='SUB_COMPONENT_PROPERTY_5') { if(document.forms[0].elements[i].checked) document.forms[0].SUB_COMPONENT_PROPERTY_7.value=document.forms[0].elements[i].value; } } openWindow(window, sDBUserLOVUrl,'lovWindow',{width:700, height:600},true, 'dialog',''); } function mappingdomainordb(sSubmitUrl,isDBSelected,isDomainSelect) { var isSubmitRequired='false'; for(var i=0;i<document.forms[0].elements.length;i++) { var sElemenetName=document.forms[0].elements[i].name; if(sElemenetName=='SUB_COMPONENT_PROPERTY_5') { if(document.forms[0].elements[i].checked) { if(document.forms[0].elements[i].value=='DATABASE' && isDBSelected=='true') { isSubmitRequired='false'; } if(document.forms[0].elements[i].value=='DOMAIN' && isDomainSelect=='true') { isSubmitRequired='false'; } else { isSubmitRequired='true'; document.forms[0].SUB_COMPONENT_PROPERTY_7.value=document.forms[0].elements[i].value; } } } if(sElemenetName=='SUB_COMPONENT_PROPERTY_2') { if(document.forms[0].elements[i].checked) document.forms[0].SUB_COMPONENT_PROPERTY_6.value = document.forms[0].elements[i].value ; } } if(isSubmitRequired=='true') { document.forms[0].action=sSubmitUrl; document.forms[0].submit(); } } " /> <uix:tableLayout width="100%" cellPadding="2" cellSpacing="2"> <uix:rowLayout hAlign="right"> <uix:cellFormat columnSpan="2"> <uix:pageButtonBar> <uix:contents> <uix:button text="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" onClick="<%=sCancelJSFunction%>" shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" /> <uix:button text="<%=eusBundle.getString(\"EUS_CONTINUE_TEXT\")%>" onClick="<%=sSubmitJSFunction%>" shortDesc="<%=eusBundle.getString(\"EUS_CONTINUE_TEXT\")%>" /> </uix:contents> </uix:pageButtonBar> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat columnSpan="2"> <uix:header textBinding="EUS_FROM_TEXT@eusMsgs"> <uix:tableLayout width="100%" cellPadding="1" cellSpacing="1"> <uix:rowLayout> <uix:cellFormat columnSpan="2"> <uix:formattedText styleUsage="instruction" text="<%=eusBundle.getString(\"EUS_CREATE_MAPPING_USER_OR_SUBTREE_INS_TXT\")%>" /> </uix:cellFormat> </uix:rowLayout> <% if(iEUSComponentType==1) { %> <uix:rowLayout> <uix:cellFormat> <uix:messageRadioButton name="SUB_COMPONENT_PROPERTY_2" text="<%=eusBundle.getString(\"EUS_USER_TEXT\")%>" value="ENTRY" selected="<%=isUserLovSelected%>" shortDesc="<%=eusBundle.getString(\"EUS_USER_TEXT\")%>" required="uiOnly" /> </uix:cellFormat> <uix:cellFormat> <uix:styledText text="<%=sSubCompPropertyUserLOv%>" styleClass="OraDataText"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat> <uix:messageRadioButton name="SUB_COMPONENT_PROPERTY_2" text="<%=eusBundle.getString(\"EUS_SUBTREE_TEXT\")%>" value="SUBTREE" selected="<%=isSubTreeLovSelected%>" shortDesc="<%=eusBundle.getString(\"EUS_SUBTREE_TEXT\")%>" required="uiOnly"/> </uix:cellFormat> <uix:cellFormat> <uix:styledText text="<%=sSubCompPropertySubtreeLOv%>" styleClass="OraDataText"/> </uix:cellFormat> </uix:rowLayout> <% } else { %> <uix:rowLayout> <uix:cellFormat width="15%" hAlign="left"> <uix:messageRadioButton name="SUB_COMPONENT_PROPERTY_2" text="<%=eusBundle.getString(\"EUS_USER_TEXT\")%>" value="ENTRY" selected="<%=isUserLovSelected%>" shortDesc="<%=eusBundle.getString(\"EUS_USER_TEXT\")%>" required="uiOnly"/> </uix:cellFormat> <uix:cellFormat width="85%" hAlign="left"> <uix:messageRadioButton name="SUB_COMPONENT_PROPERTY_2" text="<%=eusBundle.getString(\"EUS_SUBTREE_TEXT\")%>" value="SUBTREE" selected="<%=isSubTreeLovSelected%>" shortDesc="<%=eusBundle.getString(\"EUS_SUBTREE_TEXT\")%>" required="uiOnly"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat columnSpan="2"> <uix:messageLovField name="SUB_COMPONENT_PROPERTY_1" onClick="<%=sFromUserJSFunction%>" text="<%=sSubComponentProperty1Value%>" shortDesc="<%=eusBundle.getString(\"EUS_USER_TEXT\")%>" searchDesc="<%=eusBundle.getString(\"EUS_USER_TEXT\")%>"/> </uix:cellFormat> </uix:rowLayout> <% } %> </uix:tableLayout> </uix:header> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat columnSpan="2"> <uix:header textBinding="EUS_TO_TEXT@eusMsgs"> <uix:tableLayout width="100%" cellPadding="2" cellSpacing="2"> <uix:rowLayout> <uix:cellFormat columnSpan="2"> <% String sCreateMappingSchemaInstructionTextKey="EUS_CREATE_MAPPING_SCHEMA_INS_TXT_FOR_COMP_"+iEUSComponentType; String sCreateMappingSchemaInstructionText=eusBundle.getString(sCreateMappingSchemaInstructionTextKey); %> <uix:formattedText styleUsage="instruction" text="<%=sCreateMappingSchemaInstructionText%>" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat columnSpan="2"> <% switch(iEUSComponentType) { case 1: %> <uix:tableLayout cellPadding="1" cellSpacing="1"> <uix:rowLayout> <uix:cellFormat width="25%" hAlign="left"> <uix:messageRadioButton name="SUB_COMPONENT_PROPERTY_5" text="<%=eusBundle.getString(\"EUS_DATABASE_TEXT\")%>" value="DATABASE" selected="<%=isDatabaseSelected%>" shortDesc="<%=eusBundle.getString(\"EUS_DATABASE_TEXT\")%>" onClick="<%=sMoveToDomainoDbJS%>"/> </uix:cellFormat> <uix:cellFormat width="75%" hAlign="left"> <uix:messageRadioButton name="SUB_COMPONENT_PROPERTY_5" text="<%=eusBundle.getString(\"EUS_DOMAIN_TEXT\")%>" value="DOMAIN" selected="<%=isDomainSelected%>" shortDesc="<%=eusBundle.getString(\"EUS_DOMAIN_TEXT\")%>" onClick="<%=sMoveToDomainoDbJS%>"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <% if(isDatabaseSelected.equals("true")) { %> <uix:cellFormat> <uix:styledText styleClass="OraInstructionText" text="<%=eusBundle.getString(\"EUS_DATABASE_TEXT\")%>" labeledNodeId="SUB_COMPONENT_PROPERTY_4"/> </uix:cellFormat> <% } else if(isDomainSelected.equals("true")) { %> <uix:cellFormat> <uix:styledText styleClass="OraInstructionText" text="<%=eusBundle.getString(\"EUS_DOMAIN_TEXT\")%>" labeledNodeId="SUB_COMPONENT_PROPERTY_4"/> </uix:cellFormat> <% } %> <uix:cellFormat> <uix:messageChoice id="SUB_COMPONENT_PROPERTY_4" name="SUB_COMPONENT_PROPERTY_4" shortDesc="<%=eusBundle.getString(\"EUS_DATABASE_TEXT\")%>" > <uix:contents> <% if(availableScope != null && availableScope.size() > 0) { for(int i=0;i<availableScope.size();i++) { String sIsDBorDomainSelected="false"; String sDatabaseName=(String)availableScope.get(i); if(sSubComponentProperty4Value.equals(sDatabaseName)) sIsDBorDomainSelected="true"; %> <uix:option text="<%=sDatabaseName%>" value="<%=sDatabaseName%>" selected="<%=sIsDBorDomainSelected%>" shortDesc="<%=sDatabaseName%>" /> <% } } %> </uix:contents> </uix:messageChoice> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat> <uix:styledText styleClass="OraInstructionText" text="<%=eusBundle.getString(\"EUS_SCHEMA_TEXT\")%>" labeledNodeId="SUB_COMPONENT_PROPERTY_3"/> </uix:cellFormat> <uix:cellFormat> <% if(isDatabaseSelected.equals("true")) { %> <uix:messageLovField name="SUB_COMPONENT_PROPERTY_3" id="SUB_COMPONENT_PROPERTY_3" onClick="<%=sDBUserAction%>" text="<%=sDBUserLov%>" shortDesc="<%=eusBundle.getString(\"EUS_SCHEMA_TEXT\")%>" searchDesc="<%=eusBundle.getString(\"EUS_SCHEMA_TEXT\")%>"/> <% } else if(isDomainSelected.equals("true")) { %> <uix:messageTextInput name="SUB_COMPONENT_PROPERTY_3" id="SUB_COMPONENT_PROPERTY_3" shortDesc="<%=eusBundle.getString(\"EUS_SCHEMA_TEXT\")%>" text="<%=sDomainUserLov%>" /> <% } %> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> </uix:rowLayout> </uix:tableLayout> <% break; case 3: %> <uix:messageTextInput name="SUB_COMPONENT_PROPERTY_3" prompt="<%=eusBundle.getString(\"EUS_SCHEMA_TEXT\")%>" text="<%=sDBUserLov%>" shortDesc="<%=eusBundle.getString(\"EUS_SCHEMA_TEXT\")%>" required="uiOnly"/> <% break; case 4: %> <uix:messageLovField name="SUB_COMPONENT_PROPERTY_3" onClick="<%=sDBUserAction%>" prompt="<%=eusBundle.getString(\"EUS_SCHEMA_TEXT\")%>" text="<%=sDBUserLov%>" shortDesc="<%=eusBundle.getString(\"EUS_SCHEMA_TEXT\")%>" searchDesc="<%=eusBundle.getString(\"EUS_SCHEMA_TEXT\")%>" required="uiOnly"/> <% break; } %> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:header> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="100%" cellPadding="1" cellSpacing="1" > <uix:rowLayout hAlign="right"> <uix:pageButtonBar> <uix:contents> <uix:button text="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" onClick="<%=sCancelJSFunction%>" shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" /> <uix:button text="<%=eusBundle.getString(\"EUS_CONTINUE_TEXT\")%>" onClick="<%=sSubmitJSFunction%>" shortDesc="<%=eusBundle.getString(\"EUS_CONTINUE_TEXT\")%>" /> </uix:contents> </uix:pageButtonBar> </uix:rowLayout> </uix:tableLayout> <uix:location> <uix:breadCrumbs> <uix:link shortDescBinding="ENTERPRISE_DATABASE_SECURITY@olsMsgs" textBinding="ENTERPRISE_DATABASE_SECURITY@olsMsgs" destination="/console/database/EntDBSec?event=dbLogin"/> <uix:link shortDescBinding="EUS_ENTERPRISE_USER_SECURITY_TEXT@eusMsgs" textBinding="EUS_ENTERPRISE_USER_SECURITY_TEXT@eusMsgs" destination="/console/database/EntDBSec?event=LAUNCHMODULE&configuremodule=/database/EntDBSec/EUS/EUSComponents" /> <% String sDestination="/console/database/EntDBSec/EUS/EUSComponents?event=EUS_COMPONENTS_MAIN_PAGE&EUS_COMPONENT_TYPE="+iEUSComponentType; String sBreadCrumbMainPageTitle=eusBundle.getString("COMPONENT_TYPE_"+iEUSComponentType+"_PAGE_TITLE"); %> <uix:link text="<%=sBreadCrumbMainPageTitle%>" destination="<%=sDestination%>" shortDesc="<%=sBreadCrumbMainPageTitle%>" /> <% String sConfigureComponentBreadPageTitle=eusBundle.getString("CONFIGURE_COMPONENT_"+iEUSComponentType+"_PAGE_TITLE"); String sBreadCrumbComponentName=""; if(request.getAttribute(EUSConstants.EUS_COMPONENT_EVENT) != null && ((String)request.getAttribute(EUSConstants.EUS_COMPONENT_EVENT)).equals(EUSConstants.EUS_NEW_STATUS)) { sConfigureComponentBreadPageTitle=eusBundle.getString("CREATE_COMPONENT_"+iEUSComponentType+"_PAGE_TITLE"); } if(request.getAttribute(EUSConstants.CONFIGURE_COMPONENT_PAGE_TITLE) != null) sBreadCrumbComponentName=(String) request.getAttribute(EUSConstants.CONFIGURE_COMPONENT_PAGE_TITLE); sConfigureComponentBreadPageTitle = sConfigureComponentBreadPageTitle + sBreadCrumbComponentName; %> <uix:link text="<%=sConfigureComponentBreadPageTitle%>" destination="<%=sCancelDestinationURL%>" shortDesc="<%=sConfigureComponentBreadPageTitle%>" /> <uix:link/> </uix:breadCrumbs> </uix:location> </uix:pageLayout> </uix:form> </uix:body> </uix:document> </uix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de