%-- IBM Confidential OCO Source Material --%> <%-- 5724-i63, 5724-H88 (C) COPYRIGHT International Business Machines Corp. 1997, 2004 --%> <%-- 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. --%> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <%@ 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" %> <%@ page import="java.util.*" %> <%@ page import="com.ibm.ws.console.core.item.*" %> <%@ page import="com.ibm.ws.console.core.bean.*" %> <%@ page import="com.ibm.ws.console.core.*" %> <%@ page import="org.apache.struts.util.MessageResources,org.apache.struts.action.Action" %> <% MessageResources messages = (MessageResources) application.getAttribute(Action.MESSAGES_KEY); String showPrefs = messages.getMessage(request.getLocale(),"show.preferences"); String prefsState = (String)session.getAttribute("com_ibm_ws_prefsTable"); String prefsStateImg = "arrow_collapsed.gif"; if (prefsState == null) { prefsState = "none"; } else { if (prefsState.equals("inline")) { prefsStateImg = "arrow_expanded.gif"; } } %> <% int i = 0; List prefsList = (List)request.getAttribute("preferences"); UserPreferenceBean uBean = (UserPreferenceBean)session.getAttribute(Constants.USER_PREFS); String dataType=""; String node=""; String defaultValue=""; String units = ""; String HTMLFormElementName=""; String HTMLDataTypeName=""; String HTMLNodeName=""; String HTMLDefaultValueName=""; int prefsSize = prefsList.size(); for (Iterator iter = prefsList.iterator(); iter.hasNext();) { i++; PreferenceItem item = (PreferenceItem) iter.next(); %> <% if (item.getPrefType().equals("text")) { dataType = item.getDataType(); node = item.getPrefEntry(); defaultValue = item.getDefaultValue(); units = item.getUnits(); HTMLFormElementName = "text"+i; HTMLDataTypeName = "dataType"+i; HTMLNodeName = "node"+i; HTMLDefaultValueName = "defaultValue"+i; %> "/>"> <% if (node != null) { String invalidTextValue = (String) request.getAttribute(node + "_InvalidValue"); request.removeAttribute(node + "_InvalidValue"); %> <% if (defaultValue != null) { if (invalidTextValue != null) { %> "/>"/> <% } else { %> "/>"/> <% } %> <% if (units != null && !units.equals(" ") && !units.equals("")) { %> <% } %> <%} else { if (invalidTextValue != null) { %> "/>"/> <% } else { %> " TITLE=""/> <% } %> <% if (units != null && !units.equals(" ") && !units.equals("")) { %> <% } %> <%}%> <%} else { %> "/>"/> <% if (units != null && !units.equals(" ") && !units.equals("")) { %> <% } %> <%}%> <% } else if (item.getPrefType().equals("checkbox")) { node = item.getPrefEntry(); defaultValue = item.getDefaultValue(); units = item.getUnits(); HTMLFormElementName = "checkbox"+i; HTMLNodeName = "node"+i; HTMLDefaultValueName = "defaultValue"+i; %> <%if (node != null) { %> <%if (defaultValue == null) { defaultValue = "false"; } String val = uBean.getProperty(node, defaultValue); %> <% String newunits = messages.getMessage(request.getLocale(),units); String newlabel = messages.getMessage(request.getLocale(),item.getLabel()); if (units == null || units.equals("") || units.equals(" ") || (newunits.length() < newlabel.length())) { newunits = newlabel; } %> "/>"> /> <%=newunits%> <%}%> <%} } %> <% // CMVC defect 224729 %>