ICEfaces
  1. ICEfaces
  2. ICE-9890

ace:contextMenu within ace:tree does not fire actionListener except for root node.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P01
    • Fix Version/s: EE-3.3.0.GA_P02, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace jsf2
    • Assignee Priority:
      P2

      Description

      as per attached test case, note the context menu will fire the action listener only for the root node.
      three test pages within this test app:-
                       <ace:linkButton id="linkButton1" value="12684" href="contextMenuInAceTree.jsf"></ace:linkButton>
                         <ace:linkButton id="linkButton3" value="12684Variation" href="contextMenuInAceTree2.jsf"></ace:linkButton>
                         <ace:linkButton id="linkButton2" value="12684 no ace ajax" href="contextMenuInAceTreeNoAceAjax.jsf"></ace:linkButton>
      12684 is original test case.
      12684 variation is not using static lists directly in page.
      12684 no ajax is without using ace:ajax.

      First two show js errors
      "[window] Source element is undefined, cannot determine if this view is ICEfaces enabled." (once for each ace:ajax per menuItem). Note the id's that the ace:tree generates
      javax.faces.execute: form:tree:-:0:1:-:menuItem3a
      Even the showcase example shows '-' within id's of ace:tree. Is this acceptable for jsf id's?

        Activity

        Hide
        Judy Guglielmin added a comment -

        example app

        Show
        Judy Guglielmin added a comment - example app
        Hide
        Judy Guglielmin added a comment -

        for priority and assignment. Note support case issue.

        Show
        Judy Guglielmin added a comment - for priority and assignment. Note support case issue.
        Hide
        Mircea Toma added a comment -

        Looks like the ID’s are not valid. Mojarra likes only underscores and colons (besides word characters).

        Show
        Mircea Toma added a comment - Looks like the ID’s are not valid. Mojarra likes only underscores and colons (besides word characters).
        Hide
        Mircea Toma added a comment -

        The format of the ID is fine, JSF allows underscore, dash, colon and any word character. The ID needs to start with word character.

        Show
        Mircea Toma added a comment - The format of the ID is fine, JSF allows underscore, dash, colon and any word character. The ID needs to start with word character.
        Hide
        Mircea Toma added a comment -

        The log message described above is actually a warning not an error. The message is shown when the JSF bridge is not able to find the element that triggered the submit (this is when the data.source property is transformed from an ID as string into the element object).

        Show
        Mircea Toma added a comment - The log message described above is actually a warning not an error. The message is shown when the JSF bridge is not able to find the element that triggered the submit (this is when the data.source property is transformed from an ID as string into the element object).
        Hide
        Mircea Toma added a comment - - edited

        Modified BaseMenuRenderer to render the ID attribute for the anchor elements that represent the menu items in the page.

        Show
        Mircea Toma added a comment - - edited Modified BaseMenuRenderer to render the ID attribute for the anchor elements that represent the menu items in the page.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: