% MessageResources messages = MessageResources.getMessageResources("com.ibm.ws.console.core.resources.ConsoleAppResources"); String hideLegend = messages.getMessage(request.getLocale(),"hide.legend"); String showLegend = messages.getMessage(request.getLocale(),"show.legend"); //TODO -- remember expand/collapse state // currently the unique ID "refId" is changing everytime page is reloaded so we can not uniquely save each state. // We need to fix that issue before we can save states. Code commented below is the code that should save state // once refId is fixed. String expandGraphic = request.getContextPath()+"/images/arrow_expanded.gif"; //String expandState = (String)session.getAttribute("com_ibm_ws_"+dashboardContext+refId+"dataSetTable"); //String legendMessage = ""; //if (expandState == null) { // System.out.println("tableControlsLayout.jspf: expandState is null"); // expandState = "display:block"; // legendMessage = hideLegend; //} else if (expandState.equals("display:none")) { // expandGraphic = request.getContextPath()+"/images/arrow_collapsed.gif"; // legendMessage = showLegend; //} //System.out.println("tableControlsLayout.jspf: id: "+"com_ibm_ws_"+dashboardContext+refId+"dataSetTable"); //System.out.println("tableControlsLayout.jspf: expandState: "+expandState); %> <% if (chartLite.equalsIgnoreCase("true")) { %>
|