1276N/A $Id: CreateRemoteIDP.jsp,v 1.9 2009/07/20 23:03:23 asyhuang Exp $
1276N/A<%@taglib uri="/WEB-INF/jato.tld" prefix="jato" %>
1276N/A<%@taglib uri="/WEB-INF/cc.tld" prefix="cc" %>
1276N/A<%@taglib tagdir="/WEB-INF/tags" prefix="console"%>
1276N/A request.setCharacterEncoding("UTF-8");
1276N/A locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
1276N/A<cc:header name="hdrCommon" pageTitle="webconsole.title" bundleID="amConsole" copyrightYear="2008" fireDisplayEvents="true">
1276N/A<script language="javascript" src="../console/js/am.js"></script>
1276N/A<script language="javascript" src="../console/js/tasksPage.js"></script>
1276N/A<script language="javascript" src="../com_sun_web_ui/js/dynamic.js"></script>
1276N/A<div id="main" style="position: absolute; margin: 0; border: none; padding: 0; width:auto; height:101%;">
1276N/A<div id="divhelp" style="display: none; position:absolute; margin: 0; border: 1px solid #AABCC8; padding: 0; width:400px; height:200px; background:#FCFCFC">
1276N/A<img src="../console/images/tasks/close.gif" width="16" height="16" onClick="hideHelp()" />
1276N/A return confirm("<cc:text name="txtLogout" defaultValue="masthead.logoutMessage" bundleID="amConsole"/>");
1276N/A ',left=' + ((screen.width-650)/2));
1276N/A if (radio.value == 'url') {
1276N/A getCircleOfTrust(radio.value);
1276N/A var ans = radio.value;
1276N/A var frm = document.forms['CreateRemoteIDP'];
1276N/A if (realmobj.options.length < 2) {
1276N/A<console:redirectToXui realm="encodeURIComponent(frm.elements['CreateRemoteIDP.tfRealm'].value)"
1276N/A <cc:primarymasthead name="mhCommon" bundleID="amConsole" logoutOnClick="return confirmLogout();" locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
1276N/A<cc:pagetitle name="pgtitle" bundleID="amConsole" pageTitleText="page.title.configure.remote.idp" showPageTitleSeparator="true" viewMenuLabel="" pageTitleHelpMessage="" showPageButtonsTop="true" showPageButtonsBottom="false" />
1276N/A <cc:text name="txtDesc" defaultValue="page.desc.configure.remote.idp" bundleID="amConsole" />
1276N/A var msgConfiguring = "<cc:text name="txtConfiguring" defaultValue="configure.provider.waiting" bundleID="amConsole" escape="false" />";
1276N/A var msgConfigured = "<p> </p><input name=\"btnOK\" type=\"submit\" class=\"Btn1\" value=\"<cc:text name="txtOKBtn" defaultValue="ajax.ok.button" bundleID="amConsole" />\" onClick=\"redirectToXui();return false;\" /></div></p>";
1276N/A var closeBtn = "<p> </p><p><div class=\"TtlBtnDiv\"><input name=\"btnClose\" type=\"submit\" class=\"Btn1\" value=\"<cc:text name="txtCloseBtn" defaultValue="ajax.close.button" bundleID="amConsole" />\" onClick=\"focusMain();return false;\" /></div></p>";
1276N/A var frm = document.forms['CreateRemoteIDP'];
1276N/A btn1.onclick = submitPage;
1276N/A btn2.onclick = cancelOp;
1276N/A var userLocale = "<%= viewBean.getUserLocale().toString() %>";
1276N/A document.getElementById('dlg').innerHTML = '<center>' +
1276N/A var url = "../console/ajax/AjaxProxy.jsp";
1276N/A '&class=com.sun.identity.workflow.CreateRemoteIDP' + getData();
1276N/A var cotRadio = getRadioVal(frm, 'CreateRemoteIDP.radioCOT');
1276N/A var metaRadio = getRadioVal(frm, 'CreateRemoteIDP.radioMeta');
1276N/A if (ajaxObj.readyState == 4) {
1276N/A var result = hexToString(ajaxObj.responseText);
1276N/A document.getElementById('dlg').innerHTML = msg;
1276N/A var url = "../console/ajax/AjaxProxy.jsp";
1276N/A if (ajaxObj.readyState == 4) {
1276N/A var result = hexToString(ajaxObj.responseText);
1276N/A result = result.replace(/^\s+/, '');
1276N/A result = result.replace(/\s+$/, '');
1276N/A if (result.length == 0) {
1276N/A chooseRadio(frm, 'CreateRemoteIDP.radioCOT', 'no');
1276N/A var cots = result.split('|');
1276N/A for (var i = 0; i < cots.length; i++) {
1276N/A choiceCOT.options[i] = new Option(decodedCOT,
1276N/A chooseRadio(frm, 'CreateRemoteIDP.radioCOT', 'yes');
1276N/A selectOption(frm, 'CreateRemoteIDP.choiceCOT', presetcot);
1276N/A document.getElementById('dlg').innerHTML = msg;
1276N/A String cot = request.getParameter("cot");
1276N/A out.println("hideRealmObjs();");
1276N/A out.println("getCircleOfTrust('/');");
1276N/A str = str.replace(/"/g, '"');
1276N/A str = str.replace(/</g, '<');
1276N/A str = str.replace(/>/g, '>');
1276N/A var infoRealm = unescapeQuote("<cc:text name="txtInfoRealm" defaultValue="configure.provider.help.realm" bundleID="amConsole" />");
1276N/A var infoMetadataFile = unescapeQuote("<cc:text name="txtInfoMetadataFile" defaultValue="configure.provider.help.metadata" bundleID="amConsole" />");
1276N/A var infoMetadataFileURL = unescapeQuote("<cc:text name="txtInfoMetadataFileURL" defaultValue="configure.provider.help.metadataurl" bundleID="amConsole" />");