<%-- * Copyright (c) 2004, 2006, Oracle. All rights reserved. * * NAME * hostVolumesStorage.jspf * * NOTES * shows UI below the "Volumes" page property in the * host storage details page. * * MODIFIED * hmodawel 02/28/06 - fix ojsp compilation erro * ajere 05/24/05 - Accessibility changes * rmenon 02/10/05 - added "size" column * rmenon 12/20/04 - * rmenon 12/01/04 - sorting/blocking related code cleanup * rmenon 10/22/04 - * rmenon 10/09/04 - rmenon_storage_group_ui_and_sql_code_refactor * rmenon 10/06/04 - Created --%> <% HostStorageVolumesViewBean volumesViewBean = (HostStorageVolumesViewBean ) request.getAttribute( StorageUIConstants.VOLUMES_VIEW_BEAN_NAME ); int vendorProdCombinations = 0; if( volumesViewBean != null ) { vendorProdCombinations = volumesViewBean.getVendorProductCombinations(); } String tableName = StorageUIConstants.HOST_VOLUMES_STORAGE_UI_TABLE_NAME; SimpleDataObjectList uiTable = (SimpleDataObjectList) request.getAttribute( tableName ); int numOfRows = 0; if( uiTable != null ) numOfRows = uiTable.getSize(); %> <% if( numOfRows > 0 && vendorProdCombinations <= 1) { %> <%-- --%> <% } else { %> <% } %> <% if( vendorProdCombinations > 1 ) { %> <%}%>