ICEfaces
  1. ICEfaces
  2. ICE-4112

If a menuItem has no action/actionListener don't close menu

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2 SP1
    • Fix Version/s: 1.8RC2, 1.8
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      If a menuItem does not have an action or actionListener set for it then it should do nothing to the menuBar. Currently if you open a menuBar and then click on a menuItem that doesn't have an action or actionListener set, it removes the menuBar. An example of the required functionality can be seen in any browser (IE, FireFox). For example, in IE if you open the "File" menu and then click on the "Send" menuItem the menu does not disappear.

      A potential workaround could be to use the "onclick" attribute of the menuItem and call "return false;" to stop any processing of the menuItem but it work.

        Issue Links

          Activity

          Hide
          yip.ng added a comment -

          The onclick attribute is already set to "return false;" when there is no action listener. So, that "workaround" is no good. Something else more complicated (in the client side JavaScript?) is causing this.

          Show
          yip.ng added a comment - The onclick attribute is already set to "return false;" when there is no action listener. So, that "workaround" is no good. Something else more complicated (in the client side JavaScript?) is causing this.

            People

            • Assignee:
              Unassigned
              Reporter:
              Arran Mccullough
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: