ICEfaces
  1. ICEfaces
  2. ICE-3040

menuBar displayOnClick displays erratically

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      all

      Description

      Using a menuBar with the displayOnClick attribute set to true is showing some odd behavior. Clicking on the parent node will display the child menu very quickly and then disappears. The menuBar now functions as it does by default by showing the child menu on hover. Clicking the parent node again will stop this behavior. The code that was tested is a very simple example:

                      <ice:menuBar displayOnClick="true">
                          <ice:menuItem value="Menu Items">
                              <ice:menuItem value="Menu Item 1"/>
                              <ice:menuItem value="Menu Item 2"/>
                          </ice:menuItem>
                      </ice:menuBar>

        Activity

        Arran McCullough created issue -
        Arran McCullough made changes -
        Field Original Value New Value
        Support Customer Ref. #s https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=4806
        Ken Fyten made changes -
        Fix Version/s 1.7.1 [ 10122 ]
        Assignee Priority P3
        Assignee Adnan Durrani [ adnan.durrani ]
        Priority Major [ 3 ] Minor [ 4 ]
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Adnan Durrani added a comment -

        I have tested the above menu snippet with the head, and didn't see any problem with any of the browser.

        Show
        Adnan Durrani added a comment - I have tested the above menu snippet with the head, and didn't see any problem with any of the browser.
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]
        Hide
        Arran McCullough added a comment -

        Your right it also works for me. When I was initially testing, the menuBar component was inside a dataTable component. Here is some sample code:

        <ice:dataTable id="dataTable"
        var="user"
        value="#

        {testBean.userList}

        ">
        <ice:column>
        <f:facet name="header">
        <ice:outputText value="Menu Section"/>
        </f:facet>
        <ice:menuBar id="menu" displayOnClick="true">
        <ice:menuItem value="Menu Items">
        <ice:menuItem value="Menu Item 1"/>
        <ice:menuItem value="Menu Item 2"/>
        </ice:menuItem>
        </ice:menuBar>
        </ice:column>
        <ice:column>
        <f:facet name="header">
        <ice:outputText value="Name"/>
        </f:facet>
        <ice:outputText value="#

        {user.name}

        "/>
        </ice:column>
        <ice:column>
        <f:facet name="header">
        <ice:outputText value="Password"/>
        </f:facet>
        <ice:outputText value="#

        {user.password}

        "/>
        </ice:column>
        <ice:column>
        <f:facet name="header">
        <ice:outputText value="Address"/>
        </f:facet>
        <ice:outputText value="#

        {user.address}

        "/>
        </ice:column>
        </ice:dataTable>

        I also used the first code snippet outside of the dataTable and it displayed similar issue as reported. Without the dataTable on the page it is displayed correctly.

        Show
        Arran McCullough added a comment - Your right it also works for me. When I was initially testing, the menuBar component was inside a dataTable component. Here is some sample code: <ice:dataTable id="dataTable" var="user" value="# {testBean.userList} "> <ice:column> <f:facet name="header"> <ice:outputText value="Menu Section"/> </f:facet> <ice:menuBar id="menu" displayOnClick="true"> <ice:menuItem value="Menu Items"> <ice:menuItem value="Menu Item 1"/> <ice:menuItem value="Menu Item 2"/> </ice:menuItem> </ice:menuBar> </ice:column> <ice:column> <f:facet name="header"> <ice:outputText value="Name"/> </f:facet> <ice:outputText value="# {user.name} "/> </ice:column> <ice:column> <f:facet name="header"> <ice:outputText value="Password"/> </f:facet> <ice:outputText value="# {user.password} "/> </ice:column> <ice:column> <f:facet name="header"> <ice:outputText value="Address"/> </f:facet> <ice:outputText value="# {user.address} "/> </ice:column> </ice:dataTable> I also used the first code snippet outside of the dataTable and it displayed similar issue as reported. Without the dataTable on the page it is displayed correctly.
        Ken Fyten made changes -
        Resolution Cannot Reproduce [ 5 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Priority P3 P2
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #16696 Mon May 26 11:04:58 MDT 2008 adnan.durrani Fix for ICE-3040(menuBar displayOnClick displays erratically)
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/extras/keyboardNavigator.js
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/menubar/MenuBarRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #16697 Mon May 26 11:06:34 MDT 2008 adnan.durrani Fix for ICE-3040(menuBar displayOnClick displays erratically)
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/bridge/lib/extras/keyboardNavigator.js
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/component/src/com/icesoft/faces/component/menubar/MenuBarRenderer.java
        Hide
        Adnan Durrani added a comment -

        trunk: revision 16696
        branch 1.7 : revision 16697

        Show
        Adnan Durrani added a comment - trunk: revision 16696 branch 1.7 : revision 16697
        Adnan Durrani made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2
        Assignee Adnan Durrani [ adnan.durrani ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Arran McCullough
          • Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: