Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14156

contextMenu with dynamic group doesn't work properly

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.6, 4.5.9
    • Fix Version/s: 4.5.10
    • Component/s: component-menu
    • Labels:
      None
    • Environment:

      WildFly 8.2.1, Tomcat 8 (+ MyFaces 2.2.7 [default in Metamer] || Mojarra 2.2.8 [default in Metamer] )

      Description

      Cloned from RF-14023, but it looks like it has to something with RF-14035 / RF-14041

      Seems like the issue was not fully resolved.

      Steps to reproduce:

      1. deploy metamer and open http://localhost:8080/metamer/faces/components/richContextMenu/RF-14023.xhtml
      2. select first row in edt
        • have: error in console: 'TypeError: RichFaces.ui.MenuItem is not a constructor'
      3. right click on the selected row
        • context menu will show up (was fixed)
      4. select the only item in the group (Edit from selected >>> Item Alabama, Montgomery)
        • expected: ajax request sent, Current menu selection output is updated with selected value (Montgomery (Alabama))
        • have: no request (+ no update)

      Similar behavior can be achieved with MyFaces:

      1. deploy metamer and open http://localhost:8080/metamer/faces/components/richContextMenu/RF-14023.xhtml
      2. select first row in edt
        • have: no error in console (as expected)
      3. right click on the selected row
        • context menu will not show up

      OR:

      1. deploy metamer and open http://localhost:8080/metamer/faces/components/richContextMenu/RF-14023.xhtml
      2. show menu on the first row without selecting the row first
        • no error in console (as expected)
        • menu will show up, but hides immediately

      In all cases: after you refresh the page, while some row in the EDT is selected, the menu works as expected.
      In all cases: if i put a default not rendered menuItem in the group <rich:menuItem rendered="false"/>, everything works as expected.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  michpetrov Michal Petrov
                  Reporter:
                  jstefek Jiří Štefek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: