ICEfaces
  1. ICEfaces
  2. ICE-8102

REGRESSION: showcase: ace:contextMenu in table integration demo doesn't show again after activating a menu item

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.BETA1
    • Fix Version/s: 3.1.0.BETA2, 3.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Any
    • Workaround Exists:
      Yes
    • Workaround Description:
      Just wrap the table component inside an h:panelGroup component and attach the context menu to this component instead using its id.

      Description

      In the ICEfaces showcase application, in the Table Integration demo for ace:contextMenu, if one activates the context menu with a right click somewhere on the table and selects the "Add Rows" menu option, the table is updated with more rows, but it's not possible to display the context menu again.

      The problem has to do with delegated events (previously using the live() method in jQuery, now using the on() method with a selector). Since, the whole table is replaced in this demo, the original node that observed the right click event to display the context menu is replaced by the new table, so the menu doesn't show again.

        Activity

        Hide
        Arturo Zambrano added a comment -

        Committed fix at revision 29144.

        Show
        Arturo Zambrano added a comment - Committed fix at revision 29144.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arturo Zambrano
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: