SelectRealm.jsp revision 984ea967792540448d05fba2ac6fad5dadf91fd6
a180a41bba1d50822df23fff0099e90b86638b89vboxsync DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
a180a41bba1d50822df23fff0099e90b86638b89vboxsync The contents of this file are subject to the terms
a180a41bba1d50822df23fff0099e90b86638b89vboxsync of the Common Development and Distribution License
a180a41bba1d50822df23fff0099e90b86638b89vboxsync (the License). You may not use this file except in
a180a41bba1d50822df23fff0099e90b86638b89vboxsync compliance with the License.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync You can obtain a copy of the License at
a180a41bba1d50822df23fff0099e90b86638b89vboxsync https://opensso.dev.java.net/public/CDDLv1.0.html or
a180a41bba1d50822df23fff0099e90b86638b89vboxsync See the License for the specific language governing
a180a41bba1d50822df23fff0099e90b86638b89vboxsync permission and limitations under the License.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync When distributing Covered Code, include this CDDL
a180a41bba1d50822df23fff0099e90b86638b89vboxsync Header Notice in each file and include the License file
6e9aa255e3376b2da5824c09c4c62bc233463bfevboxsync If applicable, add the following below the CDDL Header,
6e9aa255e3376b2da5824c09c4c62bc233463bfevboxsync with the fields enclosed by brackets [] replaced by
6e9aa255e3376b2da5824c09c4c62bc233463bfevboxsync your own identifying information:
6e9aa255e3376b2da5824c09c4c62bc233463bfevboxsync "Portions Copyrighted [year] [name of copyright owner]"
6e9aa255e3376b2da5824c09c4c62bc233463bfevboxsync $Id: SelectRealm.jsp,v 1.4 2009/12/08 06:19:05 si224302 Exp $
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<%@ page info="SelectRealm" language="java" %>
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<%@taglib uri="/WEB-INF/jato.tld" prefix="jato" %>
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<%@taglib uri="/WEB-INF/cc.tld" prefix="cc" %>
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<jato:useViewBean
a180a41bba1d50822df23fff0099e90b86638b89vboxsync className="com.sun.identity.console.policy.SelectRealmViewBean"
a180a41bba1d50822df23fff0099e90b86638b89vboxsync fireChildDisplayEvents="true" >
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<cc:i18nbundle baseName="amConsole" id="amConsole"
a180a41bba1d50822df23fff0099e90b86638b89vboxsync locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<cc:header name="hdrCommon" pageTitle="webconsole.title" bundleID="amConsole" copyrightYear="2004" fireDisplayEvents="true">
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<script language="javascript">
a180a41bba1d50822df23fff0099e90b86638b89vboxsync function realmChanged(frm) {
a180a41bba1d50822df23fff0099e90b86638b89vboxsync function updateValue() {
a180a41bba1d50822df23fff0099e90b86638b89vboxsync var realm = frm.elements[frm.name + '.RealmNames'].value;
a180a41bba1d50822df23fff0099e90b86638b89vboxsync var scheme = frm.elements[frm.name + '.Schemes'].value;
a180a41bba1d50822df23fff0099e90b86638b89vboxsync var value = '';
a180a41bba1d50822df23fff0099e90b86638b89vboxsync var label = '';
a180a41bba1d50822df23fff0099e90b86638b89vboxsync if (realm == '') {
a180a41bba1d50822df23fff0099e90b86638b89vboxsync label = scheme;
a180a41bba1d50822df23fff0099e90b86638b89vboxsync value = scheme;
a180a41bba1d50822df23fff0099e90b86638b89vboxsync var realms = frm.elements[frm.name + '.RealmNames'];
a180a41bba1d50822df23fff0099e90b86638b89vboxsync for (x=0; x < realms.length; x++) {
a180a41bba1d50822df23fff0099e90b86638b89vboxsync if (realms.options[x].selected == true) {
a180a41bba1d50822df23fff0099e90b86638b89vboxsync var realmLabel = realms.options[x].text;
a180a41bba1d50822df23fff0099e90b86638b89vboxsync label = realmLabel + ':' + scheme;
a180a41bba1d50822df23fff0099e90b86638b89vboxsync value = realm + ':' + scheme;
a180a41bba1d50822df23fff0099e90b86638b89vboxsync var parentFrm = opener.document.forms[0];
a180a41bba1d50822df23fff0099e90b86638b89vboxsync var sl = parentFrm.elements[parentFrm.name + '.AuthScheme'];
a180a41bba1d50822df23fff0099e90b86638b89vboxsync var newOpt = window.opener.addOption(label, value);
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<cc:form name="SelectRealm" method="post" defaultCommandChild="/button1">
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<cc:secondarymasthead name="secMhCommon" />
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<table border="0" cellpadding="10" cellspacing="0" width="100%">
a180a41bba1d50822df23fff0099e90b86638b89vboxsync <cc:alertinline name="ialertCommon" bundleID="amConsole" />
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<%-- PAGE CONTENT --------------------------------------------------------- --%>
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<cc:pagetitle name="pgtitleTwoBtns" bundleID="amConsole" pageTitleText="policy.condition.title.selectrealm" showPageTitleSeparator="true" viewMenuLabel="" pageTitleHelpMessage="" showPageButtonsTop="true" showPageButtonsBottom="false" />
a180a41bba1d50822df23fff0099e90b86638b89vboxsync<cc:propertysheet name="propertyAttributes" bundleID="amConsole" showJumpLinks="true"/>
a180a41bba1d50822df23fff0099e90b86638b89vboxsync</cc:header>
a180a41bba1d50822df23fff0099e90b86638b89vboxsync</jato:useViewBean>