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

        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.
        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.
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: