ICEfaces
  1. ICEfaces
  2. ICE-1103

MenuItem: link is still rendered when component disabled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6DR#1, 1.6
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      noted in the forum: http://www.icefaces.org/JForum/posts/list/0/3143.page#15080

      If a MenuItem is disabled, it seems that the bound link attribute is still
      rendered and clickable.

        Activity

        Philip Breau created issue -
        Hide
        Greg McCleary added a comment -

        The disabled menuItem functionality has never been fully implemented.

        The disabled functionality of MenuItems will work as follows;
        1) Disabling a Top Level vertical or horizontal menu item will disable all of
        it's child submenu items.
        2) Hover behavior will still expand submenus but they will be disabled and the
        hover will not hilite like a regular active menu item.

        The disabled styleclasses for the MenuBar need to be created and added to our
        xp.css and royale.css.

        // disabled classes for top level horizontal
        iceMenu-dis
        iceMenu-dis a
        // disabled classes for top level vertical
        iceMenu_verticalItem-dis
        iceMenu_verticalItem-dis a
        // disabled classes for submenus in a vertical menubar
        iceSubMenu_vertical-dis
        iceSubMenu_vertical-dis a
        // disabled classes for submenus in a horizontal menubar
        iceSubMenu-dis
        iceSubMenu-dis a

        • major cleanup is required in our CSS_DEFAULT.java *
        Show
        Greg McCleary added a comment - The disabled menuItem functionality has never been fully implemented. The disabled functionality of MenuItems will work as follows; 1) Disabling a Top Level vertical or horizontal menu item will disable all of it's child submenu items. 2) Hover behavior will still expand submenus but they will be disabled and the hover will not hilite like a regular active menu item. The disabled styleclasses for the MenuBar need to be created and added to our xp.css and royale.css. // disabled classes for top level horizontal iceMenu-dis iceMenu-dis a // disabled classes for top level vertical iceMenu_verticalItem-dis iceMenu_verticalItem-dis a // disabled classes for submenus in a vertical menubar iceSubMenu_vertical-dis iceSubMenu_vertical-dis a // disabled classes for submenus in a horizontal menubar iceSubMenu-dis iceSubMenu-dis a major cleanup is required in our CSS_DEFAULT.java *
        Hide
        Greg McCleary added a comment -

        Created an attachment (id=139)
        testcase for disabling individual menuItems and their sub-menus

        Show
        Greg McCleary added a comment - Created an attachment (id=139) testcase for disabling individual menuItems and their sub-menus
        Hide
        Greg McCleary added a comment -

        Fixed in HEAD [ rev. 12990 ]

        Show
        Greg McCleary added a comment - Fixed in HEAD [ rev. 12990 ]
        Icefaces Administrator made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1141 12372
        Ken Fyten made changes -
        Fix Version/s 1.6DR1 [ 10035 ]
        Fix Version/s 1.6 [ 10031 ]
        Hide
        Philip Breau added a comment -

        fix doesn't work for top level menu items.

        suggested fix diffed to 1.5.3:

        — C:\work\frameworks\ICEfaces-1.5.3-src\icefaces\component\src\com\icesoft\faces\component\menubar\MenuItemRenderer.java 2006-11-07 14:38:10.000000000 -0700
        +++ C:\work\frameworks\ICEfaces-1.5.3-src-Inovis\icefaces\component\src\com\icesoft\faces\component\menubar\MenuItemRenderer.java 2007-02-21 13:54:29.000000000 -0700
        @@ -145,21 +145,23 @@
        Element topLevelDiv = domContext.createRootElement(HTML.DIV_ELEM);
        topLevelDiv.setAttribute(HTML.ID_ATTR, clientId);
        }
        Element topLevelDiv = (Element) domContext.getRootNode();
        topLevelDiv.setAttribute(HTML.NAME_ATTR, "TOP_LEVEL");

        + boolean isDisabled = ((MenuItem)uiComponent).isDisabled();
        if (vertical)

        { - topLevelDiv.setAttribute(HTML.CLASS_ATTR, - CSS_DEFAULT.MENU_VERTICAL_ITEM_STYLE); + topLevelDiv.setAttribute(HTML.CLASS_ATTR, + CSS_DEFAULT.MENU_VERTICAL_ITEM_STYLE + ( isDisabled ? "-dis" : "" ) ); }

        else

        { - topLevelDiv.setAttribute(HTML.CLASS_ATTR, - CSS_DEFAULT.MENU_HORIZONTAL_STYLE); + topLevelDiv.setAttribute(HTML.CLASS_ATTR, + CSS_DEFAULT.MENU_HORIZONTAL_STYLE + (isDisabled ? "-dis" : "") ); }

        +

        • if (uiComponent.getChildCount() > 0) {
          + if (uiComponent.getChildCount() > 0 && !isDisabled )
          Unknown macro: { String displayEvent = HTML.ONMOUSEOVER_ATTR; if (vertical) { topLevelDiv.setAttribute(displayEvent, "Ice.Menu.hideOrphanedMenusNotRelatedTo(this);" + expand("this", clientId + "_sub", KEYWORD_THIS)); @@ -254,13 +256,19 @@ div.appendChild(iconImg); } }

        // create a span for text
        Element span = domContext.createElement(HTML.SPAN_ELEM);

        • span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel");
          + if (!menuItem.isDisabled()) { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR, "iceLink"); + }

          else

          { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel-dis"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR, "iceLink-dis"); + }

          div.appendChild(span);
          // create text
          Node text = domContext.createTextNode(DOMUtils.escapeAnsi(menuItem.getValue().toString()));
          span.appendChild(text);

        return anchor;
        @@ -303,13 +311,19 @@
        iconImg.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowImage ");
        div.appendChild(iconImg);
        }

        // create a span for text
        Element span = domContext.createElement(HTML.SPAN_ELEM);

        • span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel");
          + if (!menuItem.isDisabled()) { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR,"iceLink"); + } else { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel-dis"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR,"iceLink-dis"); + }
          div.appendChild(span);
          // create text
          Node text = domContext.createTextNode(DOMUtils.escapeAnsi(menuItem.getValue().toString()));
          span.appendChild(text);

          return anchor;
          @@ -348,13 +362,19 @@
          iconImg.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowImage ");
          div.appendChild(iconImg);
          }

          // create a span for text
          Element span = domContext.createElement(HTML.SPAN_ELEM);
          - span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel");
          + if (!menuItem.isDisabled()) { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR,"iceLink"); + }

          else

          { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel-dis"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR,"iceLink-dis"); + }

          div.appendChild(span);
          // create text
          Node text = domContext.createTextNode(DOMUtils.escapeAnsi(menuItem.getValue().toString()));
          span.appendChild(text);

        return anchor;
        @@ -486,13 +506,13 @@
        link.setValue(nextSubMenuItem.getValue());
        link.setParent(nextSubMenuItem);
        link.setId(LINK_SUFFIX);
        if (nextSubMenuItem.isDisabled())

        { link.setDisabled(nextSubMenuItem.isDisabled()); }
        • link.setStyleClass("");
          + //link.setStyleClass("");
          Node lastCursorParent = domContext.getCursorParent();
          domContext.setCursorParent(subMenuItemDiv);
          if (vertical) { addChildren(link, nextSubMenuItem, menuComponent); }

          else

          { addTopLevelChildren(link, nextSubMenuItem, menuComponent); @@ -575,13 +595,17 @@ image.setStyleClass("iceSubMenuRowImage"); div.getChildren().add(image); }

        HtmlOutputText outputText = new HtmlOutputText();
        outputText.setValue(link.getValue());

        • outputText.setStyleClass("iceSubMenuRowLabel");
          + if (!nextSubMenuItem.isDisabled()) { + outputText.setStyleClass("iceSubMenuRowLabel"); + } else { + outputText.setStyleClass("iceSubMenuRowLabel-dis"); + }
          link.setValue("");
          div.getChildren().add(outputText);

          link.getChildren().add(div);
          }

          @@ -607,13 +631,17 @@
          image.setStyleClass("iceSubMenuRowImage");
          div.getChildren().add(image);
          }

          HtmlOutputText outputText = new HtmlOutputText();
          outputText.setValue(link.getValue());
          - outputText.setStyleClass("iceSubMenuRowLabel");
          + if (!nextSubMenuItem.isDisabled()) { + outputText.setStyleClass("iceSubMenuRowLabel"); + }

          else

          { + outputText.setStyleClass("iceSubMenuRowLabel-dis"); + }

          link.setValue("");
          div.getChildren().add(outputText);

        link.getChildren().add(div);
        }

        — C:\work\frameworks\ICEfaces-1.5.3-src\icefaces\core\src\com\icesoft\faces\resources\css\royale\royale.css 2006-11-03 14:30:58.000000000 -0700
        +++ C:\work\frameworks\ICEfaces-1.5.3-src-Inovis\icefaces\core\src\com\icesoft\faces\resources\css\royale\royale.css 2007-02-21 14:51:22.000000000 -0700
        @@ -1431,12 +1431,127 @@
        .iceSubMenuDividerVert

        { height: auto; float: left; width: 100%; }

        +/* submenu disabled style classes */
        +.iceSubMenuRowLabel-dis

        { + color: #ABABAB; + text-decoration: none; + cursor: default; +}

        +
        +.iceSubMenuRow-dis

        { + color: #ABABAB; + text-decoration: none; + cursor: default; + padding: 0px; + display: block; + height: auto; +}

        +
        +.iceSubMenuRow-dis a

        { + color: #333333; + text-decoration: none; + cursor: default; + display: block; + padding-left: 3px; + padding-right: 3px; + padding-top: 3px; + padding-bottom: 3px; + +}

        +
        +.iceSubMenuRow-dis a:hover

        { + color: #ABABAB; + text-decoration: none; + border-bottom: 1px dotted #CCCCCC; + cursor: default; +}

        +.iceMenu-dis

        { + float: left; + padding: 0px; + color: #ABABAB; + text-decoration: none; + display: block; + white-space: nowrap; +}

        +
        +.iceMenu-dis a

        { + background-color: #DDDDDD; + height: auto; + padding-left: 10px; + padding-right: 10px; + padding-top: 3px; + padding-bottom: 3px; + color: #333333; /* Must be >1.01em to avoid layout artifacts on Macs */ + font-size: 1.1em; + margin: 0px; + border-right: 1px solid #FFFFFF; + width: auto; + float: left; + display: block; + text-decoration: none; + cursor: default; + +}

        +
        +.iceMenu-dis a:hover

        { + background-color: #2A6CC2; + border-right: 1px solid #FFFFFF; + text-decoration: none; + color: #ABABAB; + cursor: default; +}

        +
        +.iceMenu-dis hr, .subiceMenu-dis hr

        { + border: none 0; + border-top: 1px solid #999999; + width: 100%; + height: 1px; + margin-top: 3px; + padding: 0px; + color: #ABABAB; + cursor: default; + text-align: left; +}

        +
        +.iceMenu_verticalItem-dis

        { + width: 160px; + color: #ABABAB; + text-decoration: none; + display: block; +}

        +
        +.iceMenu_verticalItem-dis a

        { + background-color: #DDDDDD; + height: auto; + padding-left: 3px; + padding-right: 3px; + padding-top: 3px; + padding-bottom: 3px; + color: #333333; + font-size: 1.1em; + margin-bottom: 1px; + float: none; + display: block; + text-decoration: none; + border: 0px solid #FFFFFF; + cursor: default; + width: 100%; +}

        +
        +.iceMenu_verticalItem a:hover

        { + background-color: #2A6CC2; + text-decoration: none; + color: #ABABAB; + cursor: default; +}

        +
        +
        /*
        ----------- PanelPopup ----------
        */

        .icePanelPopup

        { color: #666666; --- C:\work\frameworks\ICEfaces-1.5.3-src\icefaces\core\src\com\icesoft\faces\resources\css\xp\xp.css 2006-11-09 15:35:40.000000000 -0700 +++ C:\work\frameworks\ICEfaces-1.5.3-src-Inovis\icefaces\core\src\com\icesoft\faces\resources\css\xp\xp.css 2007-02-21 14:02:03.000000000 -0700 @@ -1357,12 +1357,60 @@ width: 100%; height: 1px; margin-top: 3px; padding: 0px; text-align: left; }

        +.iceMenu-dis

        { + float: left; + padding: 0px; + color: #ABABAB; + text-decoration: none; + display: block; + white-space: nowrap; +}

        +
        +.iceMenu-dis a

        { + background-color: #DDDDDD; + height: auto; + padding-left: 10px; + padding-right: 10px; + padding-top: 3px; + padding-bottom: 3px; + color: #333333; /* Must be >1.01em to avoid layout artifacts on Macs */ + font-size: 1.1em; + margin: 0px; + border-right: 1px solid #FFFFFF; + width: auto; + float: left; + display: block; + text-decoration: none; + cursor: default; + +}

        +
        +.iceMenu-dis a:hover

        { + background-color: #2A6CC2; + border-right: 1px solid #FFFFFF; + text-decoration: none; + color: #ABABAB; + cursor: default; +}

        +
        +.iceMenu-dis hr, .subiceMenu-dis hr

        { + border: none 0; + border-top: 1px solid #999999; + width: 100%; + height: 1px; + margin-top: 3px; + padding: 0px; + color: #ABABAB; + cursor: default; + text-align: left; +}

        +

        /* classes for the vertical version of the iceMenu*/
        .iceMenu_vertical {
        float: left;
        padding: 0px;
        white-space: nowrap;
        @@ -1392,12 +1440,44 @@

        .iceMenu_verticalItem a:hover

        { background-color: #2A6CC2; color: #FFFFFF; text-decoration: none; }

        +.iceMenu_verticalItem-dis

        { + width: 160px; + color: #ABABAB; + text-decoration: none; + display: block; +}

        +
        +.iceMenu_verticalItem-dis a

        { + background-color: #DDDDDD; + height: auto; + padding-left: 3px; + padding-right: 3px; + padding-top: 3px; + padding-bottom: 3px; + color: #333333; + font-size: 1.1em; + margin-bottom: 1px; + float: none; + display: block; + text-decoration: none; + border: 0px solid #FFFFFF; + cursor: default; + width: 100%; +}

        +
        +.iceMenu_verticalItem a:hover

        { + background-color: #2A6CC2; + text-decoration: none; + color: #ABABAB; + cursor: default; +}

        +

        .iceSubMenu {
        position: absolute;
        background-color: #EFEFEF;
        width: 160px;
        @@ -1486,12 +1566,47 @@
        .iceSubMenuDividerVert

        { height: auto; float: left; width: 100%; }

        +/* submenu disabled style classes */
        +.iceSubMenuRowLabel-dis

        { + color: #ABABAB; + text-decoration: none; + cursor: default; +}

        +
        +.iceSubMenuRow-dis

        { + color: #ABABAB; + text-decoration: none; + cursor: default; + padding: 0px; + display: block; + height: auto; +}

        +
        +.iceSubMenuRow-dis a

        { + color: #333333; + text-decoration: none; + cursor: default; + display: block; + padding-left: 3px; + padding-right: 3px; + padding-top: 3px; + padding-bottom: 3px; + +}

        +
        +.iceSubMenuRow-dis a:hover

        { + color: #ABABAB; + text-decoration: none; + border-bottom: 1px dotted #CCCCCC; + cursor: default; +}

        +
        /*
        ----------- PanelPopup ----------
        */

        .icePanelPopup {
        color: #666666;

        Show
        Philip Breau added a comment - fix doesn't work for top level menu items. suggested fix diffed to 1.5.3: — C:\work\frameworks\ICEfaces-1.5.3-src\icefaces\component\src\com\icesoft\faces\component\menubar\MenuItemRenderer.java 2006-11-07 14:38:10.000000000 -0700 +++ C:\work\frameworks\ICEfaces-1.5.3-src-Inovis\icefaces\component\src\com\icesoft\faces\component\menubar\MenuItemRenderer.java 2007-02-21 13:54:29.000000000 -0700 @@ -145,21 +145,23 @@ Element topLevelDiv = domContext.createRootElement(HTML.DIV_ELEM); topLevelDiv.setAttribute(HTML.ID_ATTR, clientId); } Element topLevelDiv = (Element) domContext.getRootNode(); topLevelDiv.setAttribute(HTML.NAME_ATTR, "TOP_LEVEL"); + boolean isDisabled = ((MenuItem)uiComponent).isDisabled(); if (vertical) { - topLevelDiv.setAttribute(HTML.CLASS_ATTR, - CSS_DEFAULT.MENU_VERTICAL_ITEM_STYLE); + topLevelDiv.setAttribute(HTML.CLASS_ATTR, + CSS_DEFAULT.MENU_VERTICAL_ITEM_STYLE + ( isDisabled ? "-dis" : "" ) ); } else { - topLevelDiv.setAttribute(HTML.CLASS_ATTR, - CSS_DEFAULT.MENU_HORIZONTAL_STYLE); + topLevelDiv.setAttribute(HTML.CLASS_ATTR, + CSS_DEFAULT.MENU_HORIZONTAL_STYLE + (isDisabled ? "-dis" : "") ); } + if (uiComponent.getChildCount() > 0) { + if (uiComponent.getChildCount() > 0 && !isDisabled ) Unknown macro: { String displayEvent = HTML.ONMOUSEOVER_ATTR; if (vertical) { topLevelDiv.setAttribute(displayEvent, "Ice.Menu.hideOrphanedMenusNotRelatedTo(this);" + expand("this", clientId + "_sub", KEYWORD_THIS)); @@ -254,13 +256,19 @@ div.appendChild(iconImg); } } // create a span for text Element span = domContext.createElement(HTML.SPAN_ELEM); span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel"); + if (!menuItem.isDisabled()) { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR, "iceLink"); + } else { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel-dis"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR, "iceLink-dis"); + } div.appendChild(span); // create text Node text = domContext.createTextNode(DOMUtils.escapeAnsi(menuItem.getValue().toString())); span.appendChild(text); return anchor; @@ -303,13 +311,19 @@ iconImg.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowImage "); div.appendChild(iconImg); } // create a span for text Element span = domContext.createElement(HTML.SPAN_ELEM); span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel"); + if (!menuItem.isDisabled()) { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR,"iceLink"); + } else { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel-dis"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR,"iceLink-dis"); + } div.appendChild(span); // create text Node text = domContext.createTextNode(DOMUtils.escapeAnsi(menuItem.getValue().toString())); span.appendChild(text); return anchor; @@ -348,13 +362,19 @@ iconImg.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowImage "); div.appendChild(iconImg); } // create a span for text Element span = domContext.createElement(HTML.SPAN_ELEM); - span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel"); + if (!menuItem.isDisabled()) { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR,"iceLink"); + } else { + span.setAttribute(HTML.CLASS_ATTR, "iceSubMenuRowLabel-dis"); + anchor.setAttribute(HTML.STYLE_CLASS_ATTR,"iceLink-dis"); + } div.appendChild(span); // create text Node text = domContext.createTextNode(DOMUtils.escapeAnsi(menuItem.getValue().toString())); span.appendChild(text); return anchor; @@ -486,13 +506,13 @@ link.setValue(nextSubMenuItem.getValue()); link.setParent(nextSubMenuItem); link.setId(LINK_SUFFIX); if (nextSubMenuItem.isDisabled()) { link.setDisabled(nextSubMenuItem.isDisabled()); } link.setStyleClass(""); + //link.setStyleClass(""); Node lastCursorParent = domContext.getCursorParent(); domContext.setCursorParent(subMenuItemDiv); if (vertical) { addChildren(link, nextSubMenuItem, menuComponent); } else { addTopLevelChildren(link, nextSubMenuItem, menuComponent); @@ -575,13 +595,17 @@ image.setStyleClass("iceSubMenuRowImage"); div.getChildren().add(image); } HtmlOutputText outputText = new HtmlOutputText(); outputText.setValue(link.getValue()); outputText.setStyleClass("iceSubMenuRowLabel"); + if (!nextSubMenuItem.isDisabled()) { + outputText.setStyleClass("iceSubMenuRowLabel"); + } else { + outputText.setStyleClass("iceSubMenuRowLabel-dis"); + } link.setValue(""); div.getChildren().add(outputText); link.getChildren().add(div); } @@ -607,13 +631,17 @@ image.setStyleClass("iceSubMenuRowImage"); div.getChildren().add(image); } HtmlOutputText outputText = new HtmlOutputText(); outputText.setValue(link.getValue()); - outputText.setStyleClass("iceSubMenuRowLabel"); + if (!nextSubMenuItem.isDisabled()) { + outputText.setStyleClass("iceSubMenuRowLabel"); + } else { + outputText.setStyleClass("iceSubMenuRowLabel-dis"); + } link.setValue(""); div.getChildren().add(outputText); link.getChildren().add(div); } — C:\work\frameworks\ICEfaces-1.5.3-src\icefaces\core\src\com\icesoft\faces\resources\css\royale\royale.css 2006-11-03 14:30:58.000000000 -0700 +++ C:\work\frameworks\ICEfaces-1.5.3-src-Inovis\icefaces\core\src\com\icesoft\faces\resources\css\royale\royale.css 2007-02-21 14:51:22.000000000 -0700 @@ -1431,12 +1431,127 @@ .iceSubMenuDividerVert { height: auto; float: left; width: 100%; } +/* submenu disabled style classes */ +.iceSubMenuRowLabel-dis { + color: #ABABAB; + text-decoration: none; + cursor: default; +} + +.iceSubMenuRow-dis { + color: #ABABAB; + text-decoration: none; + cursor: default; + padding: 0px; + display: block; + height: auto; +} + +.iceSubMenuRow-dis a { + color: #333333; + text-decoration: none; + cursor: default; + display: block; + padding-left: 3px; + padding-right: 3px; + padding-top: 3px; + padding-bottom: 3px; + +} + +.iceSubMenuRow-dis a:hover { + color: #ABABAB; + text-decoration: none; + border-bottom: 1px dotted #CCCCCC; + cursor: default; +} +.iceMenu-dis { + float: left; + padding: 0px; + color: #ABABAB; + text-decoration: none; + display: block; + white-space: nowrap; +} + +.iceMenu-dis a { + background-color: #DDDDDD; + height: auto; + padding-left: 10px; + padding-right: 10px; + padding-top: 3px; + padding-bottom: 3px; + color: #333333; /* Must be >1.01em to avoid layout artifacts on Macs */ + font-size: 1.1em; + margin: 0px; + border-right: 1px solid #FFFFFF; + width: auto; + float: left; + display: block; + text-decoration: none; + cursor: default; + +} + +.iceMenu-dis a:hover { + background-color: #2A6CC2; + border-right: 1px solid #FFFFFF; + text-decoration: none; + color: #ABABAB; + cursor: default; +} + +.iceMenu-dis hr, .subiceMenu-dis hr { + border: none 0; + border-top: 1px solid #999999; + width: 100%; + height: 1px; + margin-top: 3px; + padding: 0px; + color: #ABABAB; + cursor: default; + text-align: left; +} + +.iceMenu_verticalItem-dis { + width: 160px; + color: #ABABAB; + text-decoration: none; + display: block; +} + +.iceMenu_verticalItem-dis a { + background-color: #DDDDDD; + height: auto; + padding-left: 3px; + padding-right: 3px; + padding-top: 3px; + padding-bottom: 3px; + color: #333333; + font-size: 1.1em; + margin-bottom: 1px; + float: none; + display: block; + text-decoration: none; + border: 0px solid #FFFFFF; + cursor: default; + width: 100%; +} + +.iceMenu_verticalItem a:hover { + background-color: #2A6CC2; + text-decoration: none; + color: #ABABAB; + cursor: default; +} + + /* ----------- PanelPopup ---------- */ .icePanelPopup { color: #666666; --- C:\work\frameworks\ICEfaces-1.5.3-src\icefaces\core\src\com\icesoft\faces\resources\css\xp\xp.css 2006-11-09 15:35:40.000000000 -0700 +++ C:\work\frameworks\ICEfaces-1.5.3-src-Inovis\icefaces\core\src\com\icesoft\faces\resources\css\xp\xp.css 2007-02-21 14:02:03.000000000 -0700 @@ -1357,12 +1357,60 @@ width: 100%; height: 1px; margin-top: 3px; padding: 0px; text-align: left; } +.iceMenu-dis { + float: left; + padding: 0px; + color: #ABABAB; + text-decoration: none; + display: block; + white-space: nowrap; +} + +.iceMenu-dis a { + background-color: #DDDDDD; + height: auto; + padding-left: 10px; + padding-right: 10px; + padding-top: 3px; + padding-bottom: 3px; + color: #333333; /* Must be >1.01em to avoid layout artifacts on Macs */ + font-size: 1.1em; + margin: 0px; + border-right: 1px solid #FFFFFF; + width: auto; + float: left; + display: block; + text-decoration: none; + cursor: default; + +} + +.iceMenu-dis a:hover { + background-color: #2A6CC2; + border-right: 1px solid #FFFFFF; + text-decoration: none; + color: #ABABAB; + cursor: default; +} + +.iceMenu-dis hr, .subiceMenu-dis hr { + border: none 0; + border-top: 1px solid #999999; + width: 100%; + height: 1px; + margin-top: 3px; + padding: 0px; + color: #ABABAB; + cursor: default; + text-align: left; +} + /* classes for the vertical version of the iceMenu*/ .iceMenu_vertical { float: left; padding: 0px; white-space: nowrap; @@ -1392,12 +1440,44 @@ .iceMenu_verticalItem a:hover { background-color: #2A6CC2; color: #FFFFFF; text-decoration: none; } +.iceMenu_verticalItem-dis { + width: 160px; + color: #ABABAB; + text-decoration: none; + display: block; +} + +.iceMenu_verticalItem-dis a { + background-color: #DDDDDD; + height: auto; + padding-left: 3px; + padding-right: 3px; + padding-top: 3px; + padding-bottom: 3px; + color: #333333; + font-size: 1.1em; + margin-bottom: 1px; + float: none; + display: block; + text-decoration: none; + border: 0px solid #FFFFFF; + cursor: default; + width: 100%; +} + +.iceMenu_verticalItem a:hover { + background-color: #2A6CC2; + text-decoration: none; + color: #ABABAB; + cursor: default; +} + .iceSubMenu { position: absolute; background-color: #EFEFEF; width: 160px; @@ -1486,12 +1566,47 @@ .iceSubMenuDividerVert { height: auto; float: left; width: 100%; } +/* submenu disabled style classes */ +.iceSubMenuRowLabel-dis { + color: #ABABAB; + text-decoration: none; + cursor: default; +} + +.iceSubMenuRow-dis { + color: #ABABAB; + text-decoration: none; + cursor: default; + padding: 0px; + display: block; + height: auto; +} + +.iceSubMenuRow-dis a { + color: #333333; + text-decoration: none; + cursor: default; + display: block; + padding-left: 3px; + padding-right: 3px; + padding-top: 3px; + padding-bottom: 3px; + +} + +.iceSubMenuRow-dis a:hover { + color: #ABABAB; + text-decoration: none; + border-bottom: 1px dotted #CCCCCC; + cursor: default; +} + /* ----------- PanelPopup ---------- */ .icePanelPopup { color: #666666;
        Philip Breau made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Estimated Complexity Low
        Support Case References https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=3894
        Assignee Greg McCleary [ gregory.mccleary ] Rob Mayhew [ rob.mayhew ]
        Supported Customers 714
        Ken Fyten made changes -
        Fix Version/s 1.6 [ 10031 ]
        Fix Version/s 1.6DR#1 [ 10035 ]
        Ken Fyten made changes -
        Assignee Priority P2
        Ken Fyten made changes -
        Assignee Rob Mayhew [ rob.mayhew ] Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Fix Version/s 1.6DR#4 [ 10060 ]
        Fix Version/s 1.6 [ 10031 ]
        Assignee Priority P2 P3
        Ken Fyten made changes -
        Assignee Priority P3 P2
        Hide
        Adnan Durrani added a comment -

        I have tested this issue and found that it has been already fixed in 1.6 DR#1. I can disable any level of menu including top level.

        Show
        Adnan Durrani added a comment - I have tested this issue and found that it has been already fixed in 1.6 DR#1. I can disable any level of menu including top level.
        Adnan Durrani made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 1.6DR#1 [ 10035 ]
        Fix Version/s 1.6DR#4 [ 10060 ]
        Resolution Cannot Reproduce [ 5 ]
        Ken Fyten made changes -
        Fix Version/s 1.6 [ 10031 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2
        Assignee Adnan Durrani [ adnan.durrani ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: