%-- IBM Confidential OCO Source Material --%>
<%-- 5724-J34, 5655-P28 (C) COPYRIGHT International Business Machines Corp. 2006 --%>
<%-- The source code for this program is not published or otherwise divested --%>
<%-- of its trade secrets, irrespective of what has been deposited with the --%>
<%-- U.S. Copyright Office. --%>
<%@ page import="java.util.*"%>
<%@ page import="com.ibm.ws.console.xdoperations.prefs.PreferencesDetailForm"%>
<%@ page import="com.ibm.ws.console.xdoperations.prefs.PropertyDetailForm"%>
<%@ page import="com.ibm.ws.console.xdoperations.prefs.PropertyGroupDetailForm"%>
<%@ page import="com.ibm.ws.console.xdoperations.util.Utils"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/ibmcommon.tld" prefix="ibmcommon" %>
<%
PreferencesDetailForm prefsDetailForm = (PreferencesDetailForm) session.getAttribute(formName);
String contextType = (String) request.getAttribute("contextType");
//System.out.println("preferences:: contextType=" + contextType);
%>
<%
String currentPluginId = (String) pageContext.getAttribute("pluginId", PageContext.REQUEST_SCOPE);
String helpTopic = Utils.getHelpTopic(contextType);
String bcHandler = "";
%>
<% if (!helpTopic.equals("")) { %>
<%
// need to reset pluginId for help portlet link
pageContext.setAttribute ("pluginId", currentPluginId, PageContext.REQUEST_SCOPE);
} %>
<% if (prefsDetailForm != null) {
//System.out.println("found PrferencesDetailForm");
PropertyGroupDetailForm form = prefsDetailForm.getPropertyGroup();
boolean isExpandable = form.isExpandable();
List propertyGroups = form.getPropertyGroups();
List properties = form.getProperties();
%>
<%
ArrayList propItems = new ArrayList();
for (Iterator i = properties.iterator(); i.hasNext(); ) {
PropertyDetailForm propDetailForm = (PropertyDetailForm) i.next();
//System.out.println("prop=" + propDetailForm.getName());
// Only display the property if not hidden. Ex: discoverymode is usually hidden.
if (propDetailForm.isHidden()) {
continue;
}
propItems = propDetailForm.getPropertyItems();
session.setAttribute("com.ibm.ws.console.xdoperations.prefs.PropertyDetailForm", propDetailForm);
%>
<% } %>
<%
for (Iterator i = propertyGroups.iterator(); i.hasNext(); ) {
PropertyGroupDetailForm propGroupDetailForm = (PropertyGroupDetailForm) i.next();
//System.out.println("propgroup=" + propGroupDetailForm.getName());
// Only display the property if not hidden. Ex: discoverymode is usually hidden.
if (propGroupDetailForm.isHidden()) {
continue;
}
session.setAttribute("com.ibm.ws.console.xdoperations.prefs.PropertyGroupDetailForm", propGroupDetailForm);
%>
<% } %>
<% if (showButtons!=null && showButtons.equalsIgnoreCase("yes")) { %>